Example #1
0
 /// <summary>
 /// Participant constructor
 /// </summary>
 /// <param name="bot"></param>
 /// <param name="championId"></param>
 /// <param name="masteriesA"></param>
 /// <param name="profileIconId"></param>
 /// <param name="runesA"></param>
 /// <param name="spell1Id"></param>
 /// <param name="spell2Id"></param>
 /// <param name="summonerId"></param>
 /// <param name="summonerName"></param>
 /// <param name="teamId"></param>
 public ParticipantLive(bool bot,
                        long championId,
                        JArray masteriesA,
                        long profileIconId,
                        JArray runesA,
                        long spell1Id,
                        long spell2Id,
                        long?summonerId,
                        string summonerName,
                        long teamId)
 {
     this.bot        = bot;
     this.championId = championId;
     if (masteriesA != null)
     {
         this.masteries = LoadMasteries(masteriesA);
     }
     this.profileIconId = profileIconId;
     if (runesA != null)
     {
         this.runes = LoadRunes(runesA);
     }
     this.spell1Id     = spell1Id;
     this.spell2Id     = spell2Id;
     this.summonerName = summonerName;
     this.teamIdLong   = teamId;
     this.teamId       = GameConstants.SetTeamId((int)teamId);
 }
Example #2
0
        /// <summary>
        /// Game constructor
        /// </summary>
        /// <param name="championId">Champion ID associated with game</param>
        /// <param name="createDateLong">Date that end game data was recorded, specified as epoch milliseconds</param>
        /// <param name="fellowPlayersA">JArray of other players associated with the game</param>
        /// <param name="gameId">Game ID</param>
        /// <param name="gameModeString">Game mode as a string</param>
        /// <param name="gameTypeString">Game type as a string</param>
        /// <param name="invalid">Invalid flag</param>
        /// <param name="level">Level</param>
        /// <param name="ipEarned">IP earned</param>
        /// <param name="mapId">Map ID number</param>
        /// <param name="spell1Id">ID of first summoner spell</param>
        /// <param name="spell2Id">ID of second summoner spell</param>
        /// <param name="statisticsO">JArray of statistics associated with the game for this summoner</param>
        /// <param name="subTypeString">Game sub-type</param>
        /// <param name="teamId">Team ID associated with game</param>
        public Game(int championId,
                    long createDateLong,
                    JArray fellowPlayersA,
                    long gameId,
                    string gameModeString,
                    string gameTypeString,
                    bool invalid,
                    int ipEarned,
                    int level,
                    int mapId,
                    int spell1Id,
                    int spell2Id,
                    JObject statisticsO,
                    string subTypeString,
                    int teamIdInt)
        {
            fellowPlayers = new List <Player>();

            this.championId     = championId;
            this.createDateLong = createDateLong;
            createDate          = CreepScore.EpochToDateTime(createDateLong);
            LoadFellowPlayers(fellowPlayersA);
            this.gameId         = gameId;
            this.gameModeString = gameModeString;
            gameMode            = GameConstants.SetGameMode(gameModeString);
            this.gameTypeString = gameTypeString;
            gameType            = GameConstants.SetGameType(gameTypeString);
            this.invalid        = invalid;
            this.level          = level;
            this.ipEarned       = ipEarned;
            this.mapId          = mapId;
            map           = GameConstants.SetMap(mapId);
            this.spell1Id = spell1Id;
            this.spell2Id = spell2Id;
            spell1        = GameConstants.SetSpellType(spell1Id);
            spell2        = GameConstants.SetSpellType(spell2Id);
            LoadStatistics(statisticsO);
            this.subTypeString = subTypeString;
            subType            = GameConstants.SetSubType(subTypeString);
            this.teamIdInt     = teamIdInt;
            teamId             = GameConstants.SetTeamId(teamIdInt);
        }
Example #3
0
        /// <summary>
        /// Game constructor
        /// </summary>
        /// <param name="championId">Champion ID associated with game</param>
        /// <param name="createDateLong">Date that end game data was recorded, specified as epoch milliseconds</param>
        /// <param name="fellowPlayersA">JArray of other players associated with the game</param>
        /// <param name="gameId">Game ID</param>
        /// <param name="gameModeString">Game mode as a string</param>
        /// <param name="gameTypeString">Game type as a string</param>
        /// <param name="invalid">Invalid flag</param>
        /// <param name="level">Level</param>
        /// <param name="ipEarned">IP earned</param>
        /// <param name="mapId">Map ID number</param>
        /// <param name="spell1Id">ID of first summoner spell</param>
        /// <param name="spell2Id">ID of second summoner spell</param>
        /// <param name="statisticsO">JArray of statistics associated with the game for this summoner</param>
        /// <param name="subTypeString">Game sub-type</param>
        /// <param name="teamId">Team ID associated with game</param>
        public Game(int championId,
            long createDateLong,
            JArray fellowPlayersA,
            long gameId,
            string gameModeString,
            string gameTypeString,
            bool invalid,
            int ipEarned,
            int level,
            int mapId,
            int spell1Id,
            int spell2Id,
            JObject statisticsO,
            string subTypeString,
            int teamIdInt)
        {
            fellowPlayers = new List<Player>();

            this.championId = championId;
            this.createDateLong = createDateLong;
            createDate = CreepScore.EpochToDateTime(createDateLong);
            LoadFellowPlayers(fellowPlayersA);
            this.gameId = gameId;
            this.gameModeString = gameModeString;
            gameMode = GameConstants.SetGameMode(gameModeString);
            this.gameTypeString = gameTypeString;
            gameType = GameConstants.SetGameType(gameTypeString);
            this.invalid = invalid;
            this.level = level;
            this.ipEarned = ipEarned;
            this.mapId = mapId;
            map = GameConstants.SetMap(mapId);
            this.spell1Id = spell1Id;
            this.spell2Id = spell2Id;
            spell1 = GameConstants.SetSpellType(spell1Id);
            spell2 = GameConstants.SetSpellType(spell2Id);
            LoadStatistics(statisticsO);
            this.subTypeString = subTypeString;
            subType = GameConstants.SetSubType(subTypeString);
            this.teamIdInt = teamIdInt;
            teamId = GameConstants.SetTeamId(teamIdInt);
        }
Example #4
0
 /// <summary>
 /// Participant constructor
 /// </summary>
 /// <param name="bot"></param>
 /// <param name="championId"></param>
 /// <param name="masteriesA"></param>
 /// <param name="profileIconId"></param>
 /// <param name="runesA"></param>
 /// <param name="spell1Id"></param>
 /// <param name="spell2Id"></param>
 /// <param name="summonerId"></param>
 /// <param name="summonerName"></param>
 /// <param name="teamId"></param>
 public ParticipantLive(bool bot,
     long championId,
     JArray masteriesA,
     long profileIconId,
     JArray runesA,
     long spell1Id,
     long spell2Id,
     long? summonerId,
     string summonerName,
     long teamId)
 {
     this.bot = bot;
     this.championId = championId;
     if (masteriesA != null)
     {
         this.masteries = LoadMasteries(masteriesA);
     }
     this.profileIconId = profileIconId;
     if (runesA != null)
     {
         this.runes = LoadRunes(runesA);
     }
     this.spell1Id = spell1Id;
     this.spell2Id = spell2Id;
     this.summonerName = summonerName;
     this.teamIdLong = teamId;
     this.teamId = GameConstants.SetTeamId((int)teamId);
 }