Пример #1
0
 // runs method to see if simple entity should be added
 public void AddForecastByConditionMethod(
     CharacterForecastSharedData forecastSharedData,
     ConditionMethod conditionMethod)
 {
     forecastsByMethod.Add(new ForecastByMethod()
     {
         template = forecastSharedData,
         method   = conditionMethod
     });
 }
Пример #2
0
 // simple check using chance, with float values
 // from 0 up to and including 1.0
 public void AddForecastByChance(
     CharacterForecastSharedData forecastSharedData,
     float percentageChance)
 {
     forecastsByChance.Add(new ForecastByChance()
     {
         template = forecastSharedData,
         chance   = percentageChance
     });
 }