コード例 #1
0
 public StatusEffect(uint id, string name, uint flags, uint overwrite, uint tickMs)
 {
     this.id        = (StatusEffectId)id;
     this.name      = name;
     this.flags     = (StatusEffectFlags)flags;
     this.overwrite = (StatusEffectOverwrite)overwrite;
     this.tickMs    = tickMs;
 }
コード例 #2
0
        public StatusEffect(Character owner, uint id, double magnitude, uint tickMs, uint duration, byte tier = 0)
        {
            this.owner     = owner;
            this.source    = owner;
            this.id        = (StatusEffectId)id;
            this.magnitude = magnitude;
            this.tickMs    = tickMs;
            this.duration  = duration;
            this.tier      = tier;

            this.startTime = DateTime.Now;
            this.lastTick  = startTime;
        }
コード例 #3
0
        public StatusEffect(Character owner, StatusEffect effect)
        {
            this.owner     = owner;
            this.source    = owner;
            this.id        = effect.id;
            this.magnitude = effect.magnitude;
            this.tickMs    = effect.tickMs;
            this.duration  = effect.duration;
            this.tier      = effect.tier;
            this.startTime = effect.startTime;
            this.lastTick  = effect.lastTick;

            this.name      = effect.name;
            this.flags     = effect.flags;
            this.overwrite = effect.overwrite;
            this.extra     = effect.extra;
            this.script    = effect.script;
        }
コード例 #4
0
 public bool HasStatusEffect(StatusEffectId id)
 {
     return(effects.ContainsKey((uint)id));
 }