Example #1
0
        protected virtual int CompareOrder(AttributeModifier a, AttributeModifier b)
        {
            if (a.order < b.order)
            {
                return(-1);
            }

            if (a.order > b.order)
            {
                return(1);
            }

            return(0); //if (a.Order == b.Order)
        }
Example #2
0
 public virtual void Add(AttributeModifier mod)
 {
     modifiers.Add(mod);
     UpdateValue();
 }