initialize repo
This commit is contained in:
19
Lib/Civilization.Core/Actions/GameActionContext.cs
Normal file
19
Lib/Civilization.Core/Actions/GameActionContext.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using Civilization.Core.Game;
|
||||
|
||||
namespace Civilization.Core.Actions;
|
||||
|
||||
public class GameActionContext
|
||||
{
|
||||
public GameMap Map { get; }
|
||||
public List<Player> Players { get; }
|
||||
public GameState State { get; }
|
||||
|
||||
public GameActionContext(GameState gameState)
|
||||
{
|
||||
State = gameState;
|
||||
Map = gameState.Map;
|
||||
Players = gameState.Players;
|
||||
}
|
||||
|
||||
public Player CurrentPlayer => State.CurrentPlayer;
|
||||
}
|
Reference in New Issue
Block a user