예제 #1
0
        public static GameDay Create(Guid id, string name, Guid gameEventID)
        {
            var gd = new GameDay(id, name);

            gd.GameEvent = GameEvent.Get(gameEventID);
            //
            return(gd);
        }
예제 #2
0
        public static Game Create(Guid id, string name, string campaignName, string notes, int?session, GameTier tier, Guid gameDayID, Guid tableID, Guid?dmID)
        {
            var game = new Game(id, name);

            game.CampaignName  = campaignName;
            game.Notes         = notes;
            game.SessionNumber = session;
            game.Tier          = tier;
            game.GameDay       = GameDay.Get(gameDayID);
            game.Table         = Table.Get(tableID);
            game.DM            = dmID.HasValue ? DNDUser.Get(dmID.Value) : null;
            //
            return(game);
        }