예제 #1
0
파일: Aura.cs 프로젝트: leod/SabberStone
        public override void Activate(IPlayable owner, bool cloning = false)
        {
            var instance = new AdaptiveEffect(this, owner);

            owner.Game.Auras.Add(instance);
            owner.OngoingEffect = instance;
        }
예제 #2
0
파일: Aura.cs 프로젝트: leod/SabberStone
 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;
 }
예제 #3
0
 private AdaptiveEffect(AdaptiveEffect prototype, IPlayable owner) : base(prototype, owner)
 {
     _tag       = prototype._tag;
     _operator  = prototype._operator;
     _lastValue = prototype._lastValue;
 }