26 lines
529 B
C#
26 lines
529 B
C#
using GameModel;
|
|
using GameModel.Contracts;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace GameData.Dummy
|
|
{
|
|
public class DummyGameRepository : IGameRepository
|
|
{
|
|
List<GameState> gameStates = new List<GameState>();
|
|
|
|
public void Save(GameState gameState)
|
|
{
|
|
gameStates.Add(gameState);
|
|
}
|
|
|
|
public GameState Load(Guid gameId)
|
|
{
|
|
return gameStates.Last();
|
|
}
|
|
}
|
|
}
|