Beispiel #1
0
 protected override object this[string index]
 {
     get
     {
         #region
         switch (index)
         {
             case "AgainstID": return AgainstID;
             case "Round": return Round;
             case "Win": return Win;
             case "FastID": return FastID;
             case "CombatProcessContainer": return CombatProcessContainer;
             default: throw new ArgumentException(string.Format("ServerCombatDetail index[{0}] isn't exist.", index));
         }
         #endregion
     }
     set
     {
         #region
         switch (index)
         {
             case "AgainstID":
                 this._AgainstID = value.ToNotNullString();
                 break;
             case "Round":
                 this._Round = value.ToInt();
                 break;
             case "Win":
                 this._Win = value.ToBool();
                 break;
             case "FastID":
                 this._FastID = value.ToInt();
                 break;
             case "CombatProcessContainer":
                 this._CombatProcessContainer = value as CombatProcessContainer;
                 break;
             default: throw new ArgumentException(string.Format("ServerCombatDetail index[{0}] isn't exist.", index));
         }
         #endregion
     }
 }
 public CountryCombatProcess()
 {
     Version          = NextVersion;
     ProcessContainer = new CombatProcessContainer();
 }
 public FightCombatProcess()
 {
     Version = NextVersion;
     ProcessContainer = new CombatProcessContainer();
 }
Beispiel #4
0
 public CountryCombatProcess()
 {
     Version = NextVersion;
     ProcessContainer= new CombatProcessContainer();
 }
Beispiel #5
0
 public FightCombatProcess()
 {
     Version          = NextVersion;
     ProcessContainer = new CombatProcessContainer();
 }