Пример #1
0
        public static Character ForPlayer(Guid playerId)
        {
            Guard.With <ArgumentException>().Against(playerId.Equals(Guid.Empty), nameof(playerId));

            return(new Character(PlayerId.FromUiD(playerId))
            {
                State = new Draft()
            });
        }
Пример #2
0
 public IEnumerable <Model.Character.Character> GetByPlayerId(Guid playerId) =>
 Session.QueryOver <Model.Character.Character>().Where(c => c.PlayerId == PlayerId.FromUiD(playerId)).Future();