Ejemplo n.º 1
0
 public TerrainEntity(ITile tile, Texture2D texture, Color color, bool isBlocked)
     : base(tile.ToLocation())
 {
     this.tile = tile;
     this.destinationRectangle = new Rectangle
     {
         X = tile.Rect.X,
         Y = tile.Rect.Y,
         Height = tile.Rect.Height,
         Width = tile.Rect.Width
     };
     this.isBlocked = IsBlocked;
     this.texture = texture;
     this.color = color;
     this.layerDepth = 0.0f;
 }