Esempio n. 1
0
        public override void Activate(IPlayable owner, bool cloning = false)
        {
            var instance = new AdaptiveEffect(this, owner);

            owner.Game.Auras.Add(instance);
            owner.OngoingEffect = instance;
        }
Esempio n. 2
0
 private AdaptiveEffect(AdaptiveEffect prototype, IPlayable owner) : base(prototype, owner)
 {
     if (prototype._isSwitching)
     {
         _isSwitching = true;
         _tags        = prototype._tags;
         _lastValues  = new int[_tags.Length];
         Array.Copy(prototype._lastValues, _lastValues, _lastValues.Length);
         Condition = prototype.Condition;
         return;
     }
     _tag       = prototype._tag;
     _operator  = prototype._operator;
     _lastValue = prototype._lastValue;
 }
Esempio n. 3
0
 private AdaptiveEffect(AdaptiveEffect prototype, IPlayable owner) : base(prototype, owner)
 {
     _tag       = prototype._tag;
     _operator  = prototype._operator;
     _lastValue = prototype._lastValue;
 }