示例#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;
 }