コード例 #1
0
 public CommandHolder(int chanceNotNormalized, Command command, AdvancedTargeting targeting)
 {
     Chance    = chanceNotNormalized;
     Command   = command;
     Targeting = targeting;
     LastRoll  = 0;
 }
コード例 #2
0
ファイル: ActionHolder.cs プロジェクト: Peng2017/Framework
 public ActionHolder(int chanceNotNormalized, Action action, AdvancedTargeting targeting)
 {
     Chance    = chanceNotNormalized;
     Action    = action;
     Targeting = targeting;
     LastRoll  = 0;
 }
コード例 #3
0
 public ActionHolder(int chanceNotNormalized, Entity actionEntity, AdvancedTargeting targeting)
 {
     Chance = chanceNotNormalized;
     if (actionEntity != null)
     {
         Action = actionEntity.GetTemplate <ActionTemplate>();
     }
     Targeting = targeting;
     LastRoll  = 0;
 }