コード例 #1
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);
     }
 }
コード例 #2
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);
     }
 }