コード例 #1
0
ファイル: ModifiableValue.cs プロジェクト: tcmxx/tcmxxutils
 //remove the modifier and return whether this modifier is found or not.
 public bool RemoveModifier(ValueModifier <T> modifier)
 {
     if (modifiers.Remove(modifier))
     {
         ApplyModifiers();
         return(true);
     }
     return(false);
 }
コード例 #2
0
ファイル: ModifiableValue.cs プロジェクト: tcmxx/tcmxxutils
 public void InsertModifier(int index, ValueModifier <T> modifier)
 {
     modifiers.Insert(index, modifier);
     ApplyModifiers();
 }
コード例 #3
0
ファイル: ModifiableValue.cs プロジェクト: tcmxx/tcmxxutils
 public void AddModifier(ValueModifier <T> modifier)
 {
     modifiers.Add(modifier);
     ApplyModifiers();
 }