示例#1
0
 //constructor
 public Modifier(uint id, int timeActive,
                 GameEnums.Modifier formula,
                 BaseAttribute attribute)
 {
     Id           = id;
     ModifierType = formula;
     Attribute    = attribute.Clone();
     TimeActive   = timeActive;
     if (TimeActive != -1)
     {
         // timerId = EG_Core.GetInstance().StartTimerId(timeActive, this, cacheAction =>
         // {
         //     (cacheAction.Context as Modifier).ConsumeTime();
         // });
     }
 }