KoogleV4/GameData/Dummy/DummyGameRepository.cs

57 lines
1.3 KiB
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();
}
public Task<Game> Create(string gameName)
{
throw new NotImplementedException();
}
public Task<IEnumerable<GameState>> LoadStates(Guid gameId)
{
throw new NotImplementedException();
}
public Task Delete(IEnumerable<GameState> gameStates)
{
throw new NotImplementedException();
}
}
}