示例#1
0
文件: Game.cs 项目: lucy-m/sandbox
        public Game Update(GameStatus newStatus, IReadOnlyCollection <PlayEvent> newActions, DateTimeOffset updatedAt)
        {
            var newHistory = History.Concat(newActions).ToList();

            return(new Game(newStatus, newHistory, updatedAt));
        }
示例#2
0
文件: Game.cs 项目: lucy-m/sandbox
 private Game(GameStatus status, IReadOnlyCollection <PlayEvent> history, DateTimeOffset lastUpdated)
 {
     Status      = status;
     History     = history;
     LastUpdated = DateTimeOffset.Now;
 }