コード例 #1
0
 /// <summary>
 /// Creates the new WaveModel.
 /// </summary>
 /// <param name="troop">The TroopModel.</param>
 /// <param name="deployQuantity">The deploy quantity.</param>
 /// <param name="deployDelay">The deploy delay in milliseconds.</param>
 /// <returns>WaveModel.</returns>
 public static WaveModel CreateNew(TroopModel troop, int deployQuantity, int deployDelay)
 {
     return(new WaveModel(troop, deployQuantity, deployDelay));
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="WaveModel"/> class.
 /// </summary>
 /// <param name="troop">The TroopModel.</param>
 /// <param name="deployQuantity">The deploy quantity.</param>
 /// <param name="deployDelay">The deploy delay in milliseconds.</param>
 internal WaveModel(TroopModel troop, int deployQuantity, int deployDelay)
 {
     _troop          = troop;
     _deployQuantity = deployQuantity;
     _deployDelay    = deployDelay;
 }