initialize repo
This commit is contained in:
16
Lib/Civilization.Core/Tile/Tile.cs
Normal file
16
Lib/Civilization.Core/Tile/Tile.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
|
||||
|
||||
namespace Civilization.Core.Tile;
|
||||
|
||||
public class Tile
|
||||
{
|
||||
public Vec2I Position { get; }
|
||||
public TileType Type { get; set; } = TileType.Plain;
|
||||
public int? OwnerId { get; set; } = null;
|
||||
|
||||
public Tile(Vec2I position)
|
||||
{
|
||||
Position = position;
|
||||
}
|
||||
|
||||
}
|
16
Lib/Civilization.Core/Tile/TileType.cs
Normal file
16
Lib/Civilization.Core/Tile/TileType.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
namespace Civilization.Core.Tile;
|
||||
|
||||
public enum TileType
|
||||
{
|
||||
Plain = 0,
|
||||
Forest = 1,
|
||||
Mountain = 2,
|
||||
Water = 3,
|
||||
Desert = 4,
|
||||
Grassland = 5,
|
||||
Hills = 6,
|
||||
Ocean = 7,
|
||||
Tundra = 8,
|
||||
Snow = 9,
|
||||
Swamp = 10,
|
||||
}
|
Reference in New Issue
Block a user