-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTile.cs
More file actions
29 lines (24 loc) · 758 Bytes
/
Tile.cs
File metadata and controls
29 lines (24 loc) · 758 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
using BlazorRogue.Entities;
namespace BlazorRogue
{
public class Tile
{
public Tile(int x, int y, TileSet tileSet, int tileIndex)
{
this.x = x;
this.y = y;
TileSet = tileSet;
TileIndex = tileIndex;
}
public int x { get; }
public int y { get; }
public TileSet TileSet { get; set; }
public int TileIndex { get; set; }
public string ImageName { get => TileSet.ImageName(TileIndex); }
public TileType TileType => TileSet.TileType;
public string Character => TileSet.Character;
public string CharacterColor => TileSet.CharacterColor;
// For now, all blocking tiles also block light. If I make windows, this needs to change.
public bool Blocking { get; set; } = false;
}
}