Example #1
0
 public StatPersistence(StatResource attr) /*: base(attr)*/
 {
     _resource = attr;
     _typeId   = attr._tag.GetInstanceID();
     _total    = attr._total.Value;
     _current  = attr._current;
 }
Example #2
0
            public StatPersistence(StatResource attr, StatResource.StatPersistence total) /*: base(attr)*/
            {
                _resource = attr;
                _current  = attr._current;

                _total     = total.Current;
                _totalStat = total;
                _totalStat.OnCurrentChangedHandler += OnTotalUpdated;
            }