Exemplo n.º 1
0
        public static GameSession Convert(this Access.GameSession.Interface.GameSession source)
        {
            var target = new GameSession
            {
                CurrentPlayerId  = source.CurrentPlayerId,
                GameDefinitionId = source.GameDefinitionId,
                Id        = source.Id,
                PlayerIds = source.PlayerIds
            };

            return(target);
        }
Exemplo n.º 2
0
        public static GameSession Convert(this Access.GameSession.Interface.GameSession source)
        {
            Contract.Assert(source != null, "Input is null.");
            var target = new GameSession
            {
                CurrentPlayerId  = source.CurrentPlayerId,
                GameDefinitionId = source.GameDefinitionId,
                Id        = source.Id,
                PlayerIds = source.PlayerIds
            };

            return(target);
        }