Object that defines a User
コード例 #1
0
ファイル: GameRound.cs プロジェクト: kwmcrell/ArmedCards
        public GameRound(IDataReader idr)
            : this()
        {
            GameRoundID			= idr.GetValueByName<Int32>("GameRoundID");
            Started				= idr.GetValueByName<DateTime>("Started");
            GameID				= idr.GetValueByName<Int32>("Game_GameID");
            CurrentPlayerCount	= idr.GetValueByName<Int32>("CurrentPlayers");
            PlayedCount			= idr.GetValueByName<Int32>("Played");

            CardCommander		= new User(idr);
            Question			= new Card(idr);
        }
コード例 #2
0
ファイル: GameRoundCard.cs プロジェクト: kwmcrell/ArmedCards
        public GameRoundCard(IDataReader idr)
        {
            Card_CardID = idr.GetValueByName<Int32>("CardID");
            DatePlayed = idr.GetValueByName<DateTime>("DatePlayed");
            Game_GameID = idr.GetValueByName<Int32>("Game_GameID");
            GameRound_GameRoundID = idr.GetValueByName<Int32>("GameRound_GameRoundID");
            GameRoundCardID = idr.GetValueByName<Int32>("GameRoundCardID");
            PlayedBy_UserId = idr.GetValueByName<Int32>("PlayedBy_UserId");
            PlayOrder = idr.GetValueByName<Int16>("PlayOrder");
            Winner = idr.GetValueByName<Boolean>("Winner");
            AutoPlayed = idr.GetValueByName<Boolean>("AutoPlayed");

            PlayedBy = new User(idr);
            Card = new Card(idr);
        }
コード例 #3
0
ファイル: GamePlayer.cs プロジェクト: kwmcrell/ArmedCards
        public GamePlayer(IDataReader idr)
            : this()
        {
            GameID  = idr.GetValueByName<Int32>("GameID");
            User    = new User(idr);
            Points  = idr.GetValueByName<Int32>("Points");
            CardCount = idr.GetValueByName<Int32>("CardCount");
            IdlePlayCount = idr.GetValueByName<Int32>("IdlePlayCount");

            if (idr.HasColumn("Title"))
            {
                Game = new Game(idr);
            }

            PlayerType = (Enums.GamePlayerType)idr.GetValueByName<Int32>("Type");
        }
コード例 #4
0
 public LeaderboardRecord(IDataReader idr)
 {
     User = new User(idr);
     Points = idr.GetValueByName<Int32>("Points");
     Rank = idr.GetValueByName<Int32>("Rank");
 }
コード例 #5
0
 public LeaderboardRecord()
 {
     User = new User();
 }
コード例 #6
0
ファイル: GameRoundCard.cs プロジェクト: kwmcrell/ArmedCards
 public GameRoundCard()
 {
     PlayOrder = 1;
     Winner = false;
     PlayedBy = new User();
 }
コード例 #7
0
ファイル: GamePlayer.cs プロジェクト: kwmcrell/ArmedCards
 public GamePlayer()
 {
     User = new User();
     Hand = new List<GamePlayerCard>();
     PlayerType = Enums.GamePlayerType.Player;
 }
コード例 #8
0
ファイル: GameRound.cs プロジェクト: kwmcrell/ArmedCards
 public GameRound()
 {
     CardCommander = new User();
     CardsPlayed = new List<GameRoundCard>();
 }