Beispiel #1
0
 static public bool ContainStat(this RPGStatCollection collection, RPGStatType statType)
 {
     return(collection.ContainStat((int)statType));
 }
 /// <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)
 {
 }
Beispiel #3
0
 static public void UpdateStatModifer(this RPGStatCollection collection, RPGStatType statType)
 {
     collection.UpdateStatModifer((int)statType);
 }
Beispiel #4
0
 static public void ScaleStat(this RPGStatCollection collection, RPGStatType statType, int level)
 {
     collection.ScaleStat((int)statType, level);
 }
Beispiel #5
0
 static public void RemoveStatModifier(this RPGStatCollection collection, RPGStatType statType, RPGStatModifier mod, bool update)
 {
     collection.RemoveStatModifier((int)statType, mod, update);
 }
Beispiel #6
0
 static public void ClearStatModifier(this RPGStatCollection collection, RPGStatType statType, bool update)
 {
     collection.ClearStatModifier((int)statType, update);
 }
Beispiel #7
0
 static public void AddStatModifier(this RPGStatCollection collection, RPGStatType statType, RPGStatModifier mod)
 {
     collection.AddStatModifier((int)statType, mod);
 }
Beispiel #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));
 }
Beispiel #9
0
 static public T GetStat <T>(this RPGStatCollection collection, RPGStatType statType) where T : RPGStat
 {
     return(collection.GetStat <T>((int)statType));
 }
Beispiel #10
0
 static public bool TryGetStat(this RPGStatCollection collection, RPGStatType statType, out RPGStat stat)
 {
     return(collection.TryGetStat((int)statType, out stat));
 }
Beispiel #11
0
 static public RPGStat GetStat(this RPGStatCollection collection, RPGStatType statType)
 {
     return(collection.GetStat((int)statType));
 }