fork download
  1. using Microsoft.Xna.Framework;
  2. using Microsoft.Xna.Framework.Graphics;
  3. namespace Sandbox.Tiles
  4. {
  5. public class Wall : Title
  6. {
  7. public Wall(Texture2D sprite)
  8. {
  9. this.sprite = sprite;
  10. isWalkable = false;
  11. }
  12. public override void draw(SpriteBatch spriteBatch)
  13. {
  14. spriteBatch.Draw(sprite, Position, Color.White);
  15. }
  16. }
  17. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(1,17): error CS0234: The type or namespace name `Xna' does not exist in the namespace `Microsoft'. Are you missing an assembly reference?
prog.cs(2,17): error CS0234: The type or namespace name `Xna' does not exist in the namespace `Microsoft'. Are you missing an assembly reference?
prog.cs(5,25): error CS0246: The type or namespace name `Title' could not be found. Are you missing an assembly reference?
prog.cs(7,21): error CS0246: The type or namespace name `Texture2D' could not be found. Are you missing an assembly reference?
prog.cs(12,35): error CS0246: The type or namespace name `SpriteBatch' could not be found. Are you missing an assembly reference?
Compilation failed: 5 error(s), 0 warnings
stdout
Standard output is empty