42 lines
927 B
C#
42 lines
927 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 Task<GameState> Save(GameState gameState)
|
|
{
|
|
gameStates.Add(gameState);
|
|
return Task.FromResult(gameState);
|
|
}
|
|
|
|
public GameState Load(Guid gameId)
|
|
{
|
|
return gameStates.Last();
|
|
}
|
|
|
|
public Task Update(Game game)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public Task<Game> Create(Game game)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public Task<Game> LoadGame(Guid gameId)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
}
|
|
}
|