Пример #1
0
 public void Process(IGameInterface game)
 {
     double number = game.GetValueAsNumber(Key);
     number += Value;
     game.SetValueAsNumber(Key, number);
 }
Пример #2
0
 public bool Test(IGameInterface storage)
 {
     double value = storage.GetValueAsNumber(Key);
     return Math.Abs(Value - value) < Delta;
 }