Esempio n. 1
0
 public ITileLayer Get(TileLocation loc)
 {
     return(_tiles.First(x => x.Location.Equals(loc)));
 }
Esempio n. 2
0
 public Tile(string textureName, TileLocation location, Rotation rotation, bool blocking = false)
     : base(rotation, location)
 {
     _textureName = textureName;
 }
Esempio n. 3
0
 public bool Exist(TileLocation loc)
 {
     return(_tiles.Any(x => x.Location.Equals(loc)));
 }
 protected bool Equals(TileLocation other)
 {
     return(Column == other.Column && Row == other.Row);
 }