Пример #1
0
 static public bool ContainStat(this RPGStatCollection collection, RPGStatType statType)
 {
     return(collection.ContainStat((int)statType));
 }
Пример #2
0
 /// <summary>
 /// Called when the modifier is applyed to a stat collection. Passed the
 /// collection containing the stat the modifier is applied to along with
 /// the id of the applied stat.
 /// </summary>
 public virtual void OnModifierApply(RPGStatCollection collection, int statId)
 {
 }
Пример #3
0
 static public void UpdateStatModifer(this RPGStatCollection collection, RPGStatType statType)
 {
     collection.UpdateStatModifer((int)statType);
 }
Пример #4
0
 static public void ScaleStat(this RPGStatCollection collection, RPGStatType statType, int level)
 {
     collection.ScaleStat((int)statType, level);
 }
Пример #5
0
 static public void RemoveStatModifier(this RPGStatCollection collection, RPGStatType statType, RPGStatModifier mod, bool update)
 {
     collection.RemoveStatModifier((int)statType, mod, update);
 }
Пример #6
0
 static public void ClearStatModifier(this RPGStatCollection collection, RPGStatType statType, bool update)
 {
     collection.ClearStatModifier((int)statType, update);
 }
Пример #7
0
 static public void AddStatModifier(this RPGStatCollection collection, RPGStatType statType, RPGStatModifier mod)
 {
     collection.AddStatModifier((int)statType, mod);
 }
Пример #8
0
 static public bool TryGetStat <T>(this RPGStatCollection collection, RPGStatType statType, out T stat) where T : RPGStat
 {
     return(collection.TryGetStat <T>((int)statType, out stat));
 }
Пример #9
0
 static public T GetStat <T>(this RPGStatCollection collection, RPGStatType statType) where T : RPGStat
 {
     return(collection.GetStat <T>((int)statType));
 }
Пример #10
0
 static public bool TryGetStat(this RPGStatCollection collection, RPGStatType statType, out RPGStat stat)
 {
     return(collection.TryGetStat((int)statType, out stat));
 }
Пример #11
0
 static public RPGStat GetStat(this RPGStatCollection collection, RPGStatType statType)
 {
     return(collection.GetStat((int)statType));
 }