示例#1
0
 // runs method to see if simple entity should be added
 public void AddOptionByConditionMethod(
     CollectiveOptionSharedData optionTemplate,
     ConditionMethod conditionMethod)
 {
     optionsByMethod.Add(new OptionByMethod()
     {
         template = optionTemplate,
         method   = conditionMethod
     });
 }
示例#2
0
 // simple check using chance, with float values
 // from 0 up to and including 1.0
 public void AddOptionByChance(
     CollectiveOptionSharedData optionTemplate,
     float percentageChance)
 {
     optionsByChance.Add(new OptionByChance()
     {
         template = optionTemplate,
         chance   = percentageChance
     });
 }