Exemple #1
0
 public AttributeBuff(AttributeBuffDescriptor Desc, uint TargetID)
     : base(BuffType.Attribute, Desc)
 {
     this.TargetID_        = TargetID;
     this.Modify_          = Desc.Modify;
     this.MaxTriggerCount_ = Desc.MaxTriggerCount;
     this.CurTriggerCount_ = 0;
 }
Exemple #2
0
 public AttributeBuffDescriptor(string Name, float Duration, float Interval, float WaitTime, bool IsRefund, NpcAttrModifyInfo Modify, int MaxTriggerCount)
     : base(Name, Duration, Interval, WaitTime, IsRefund)
 {
     this.Modify          = Modify;
     this.MaxTriggerCount = MaxTriggerCount;
 }
Exemple #3
0
        private static void AddTrigger(uint BufferID, string Name, float Duration, float Interval, float WaitTime, bool IsRefund, NpcAttrModifyInfo Modify, float Radius, int MaxTriggerCount)
        {
            if (BuffList_.ContainsKey(BufferID))
            {
                return;
            }

            BuffList_.Add(BufferID, new TriggerBuffDescriptor(Name, Duration, Interval, WaitTime, IsRefund, Modify, Radius, MaxTriggerCount));
        }