Exemple #1
0
        public bool GetValue(string key, out int value)
        {
            byte[] data;
            if (mStorage.GetData(key, out data))
            {
                value = SaveableInt.Deserialize(0, data);
                return(true);
            }

            value = default(int);
            return(false);
        }
Exemple #2
0
 public bool SetValue(string key, int value)
 {
     return(mStorage.AddData(key, SaveableInt.Serialize(value)));
 }
Exemple #3
0
 public void ResetCounters()
 {
     BeforeEventCounter = 0;
     EventCounter       = 0;
 }