コード例 #1
0
 public ParticipantFrameAdvanced(int currentGold,
     int jungleMinionsKilled,
     int level,
     int minionsKilled,
     int participantId,
     JObject positionO,
     int totalGold,
     int xp)
 {
     this.currentGold = currentGold;
     this.jungleMinionsKilled = jungleMinionsKilled;
     this.level = level;
     this.minionsKilled = minionsKilled;
     this.participantId = participantId;
     if (positionO != null)
     {
         this.position = LoadPosition(positionO);
     }
     this.totalGold = totalGold;
     this.xp = xp;
 }
コード例 #2
0
 public ParticipantFrameAdvanced(int currentGold,
                                 int jungleMinionsKilled,
                                 int level,
                                 int minionsKilled,
                                 int participantId,
                                 JObject positionO,
                                 int totalGold,
                                 int xp)
 {
     this.currentGold         = currentGold;
     this.jungleMinionsKilled = jungleMinionsKilled;
     this.level         = level;
     this.minionsKilled = minionsKilled;
     this.participantId = participantId;
     if (positionO != null)
     {
         this.position = LoadPosition(positionO);
     }
     this.totalGold = totalGold;
     this.xp        = xp;
 }
コード例 #3
0
ファイル: EventAdvanced.cs プロジェクト: mattregul/CreepScore
 public EventAdvanced(string ascendedType,
     JArray assistingParticipantsIdsA,
     string buildingType,
     int? creatorId,
     string eventType,
     int? itemAfter,
     int? itemBefore,
     int? itemId,
     int? killerId,
     string laneType,
     string levelUpType,
     string monsterType,
     int? participantId,
     string pointCaptured,
     JObject positionO,
     int? skillSlot,
     int? teamId,
     long timestamp,
     string towerType,
     int? victimId,
     string wardType)
 {
     if (ascendedType != null)
     {
         this.ascendedType = AdvancedMatchHistoryConstants.SetAscendedType(ascendedType);
     }
     if (assistingParticipantsIdsA != null)
     {
         this.assistingParticipantIds = HelperMethods.LoadInts(assistingParticipantsIdsA);
     }
     if (buildingType != null)
     {
         this.buildingType = AdvancedMatchHistoryConstants.SetBuildingType(buildingType);
     }
     this.creatorId = creatorId;
     this.eventType = AdvancedMatchHistoryConstants.SetEventType(eventType);
     this.itemAfter = itemAfter;
     this.itemBefore = itemBefore;
     this.itemId = itemId;
     this.killerId = killerId;
     if (laneType != null)
     {
         this.laneType = AdvancedMatchHistoryConstants.SetLaneType(laneType);
     }
     if (levelUpType != null)
     {
         this.levelUpType = AdvancedMatchHistoryConstants.SetLevelUpType(levelUpType);
     }
     if (monsterType != null)
     {
         this.monsterType = AdvancedMatchHistoryConstants.SetMonsterType(monsterType);
     }
     this.participantId = participantId;
     if (pointCaptured != null)
     {
         this.pointCaptured = AdvancedMatchHistoryConstants.SetPointCaptured(pointCaptured);
     }
     if (positionO != null)
     {
         this.position = LoadPosition(positionO);
     }
     this.skillSlot = skillSlot;
     this.teamId = teamId;
     this.timestamp = TimeSpan.FromMilliseconds(timestamp);
     if (towerType != null)
     {
         this.towerType = AdvancedMatchHistoryConstants.SetTowerType(towerType);
     }
     this.victimId = victimId;
     if (wardType != null)
     {
         this.wardType = AdvancedMatchHistoryConstants.SetWardType(wardType);
     }
 }
コード例 #4
0
ファイル: EventAdvanced.cs プロジェクト: golf1052/CreepScore
 public EventAdvanced(string ascendedType,
                      JArray assistingParticipantsIdsA,
                      string buildingType,
                      int?creatorId,
                      string eventType,
                      int?itemAfter,
                      int?itemBefore,
                      int?itemId,
                      int?killerId,
                      string laneType,
                      string levelUpType,
                      string monsterType,
                      int?participantId,
                      string pointCaptured,
                      JObject positionO,
                      int?skillSlot,
                      int?teamId,
                      long timestamp,
                      string towerType,
                      int?victimId,
                      string wardType)
 {
     if (ascendedType != null)
     {
         this.ascendedType = AdvancedMatchHistoryConstants.SetAscendedType(ascendedType);
     }
     if (assistingParticipantsIdsA != null)
     {
         this.assistingParticipantIds = HelperMethods.LoadInts(assistingParticipantsIdsA);
     }
     if (buildingType != null)
     {
         this.buildingType = AdvancedMatchHistoryConstants.SetBuildingType(buildingType);
     }
     this.creatorId  = creatorId;
     this.eventType  = AdvancedMatchHistoryConstants.SetEventType(eventType);
     this.itemAfter  = itemAfter;
     this.itemBefore = itemBefore;
     this.itemId     = itemId;
     this.killerId   = killerId;
     if (laneType != null)
     {
         this.laneType = AdvancedMatchHistoryConstants.SetLaneType(laneType);
     }
     if (levelUpType != null)
     {
         this.levelUpType = AdvancedMatchHistoryConstants.SetLevelUpType(levelUpType);
     }
     if (monsterType != null)
     {
         this.monsterType = AdvancedMatchHistoryConstants.SetMonsterType(monsterType);
     }
     this.participantId = participantId;
     if (pointCaptured != null)
     {
         this.pointCaptured = AdvancedMatchHistoryConstants.SetPointCaptured(pointCaptured);
     }
     if (positionO != null)
     {
         this.position = LoadPosition(positionO);
     }
     this.skillSlot = skillSlot;
     this.teamId    = teamId;
     this.timestamp = TimeSpan.FromMilliseconds(timestamp);
     if (towerType != null)
     {
         this.towerType = AdvancedMatchHistoryConstants.SetTowerType(towerType);
     }
     this.victimId = victimId;
     if (wardType != null)
     {
         this.wardType = AdvancedMatchHistoryConstants.SetWardType(wardType);
     }
 }