initialize repo

This commit is contained in:
2025-08-08 15:36:09 +02:00
parent d6a2c37a5f
commit cabf13d164
92 changed files with 2160 additions and 2 deletions

View File

@@ -0,0 +1,7 @@
namespace Civilization.Core.Interfaces;
public interface IEntity
{
Guid Id { get; }
int OwnerId { get; }
}

View File

@@ -0,0 +1,10 @@
using Civilization.Core.Actions;
namespace Civilization.Core.Interfaces;
public interface IGameAction
{
bool CanExecute(GameActionContext context);
void Execute(GameActionContext context);
void Undo(GameActionContext context);
}

View File

@@ -0,0 +1,7 @@
namespace Civilization.Core.Interfaces;
public interface IGridSize
{
public int Width { get; }
public int Height { get; }
}

View File

@@ -0,0 +1,6 @@
namespace Civilization.Core.Interfaces;
public interface ILogger
{
void Log(string message);
}

View File

@@ -0,0 +1,9 @@
using Civilization.Core.Game;
namespace Civilization.Core.Interfaces;
public interface IOnTurnListener
{
void OnTurnStart(GameState state);
void OnTurnEnd(GameState state);
}

View File

@@ -0,0 +1,10 @@
namespace Civilization.Core.Interfaces;
public interface ITileGrid
{
IEnumerable<Vec2I> GetNeighbors(Vec2I tilePosition);
Vec2I ClampPosition(Vec2I position);
bool IsValidPosition(Vec2I position);
}