示例#1
0
            public void Add(StatusEffectType statusEffectType, ushort power, ushort secsLeft, TickCount currentTime)
            {
                Remove(statusEffectType);

                var msLeft = secsLeft * 1000;
                var life   = msLeft + currentTime;

                var ase = new StatusEffectCollectionItem(statusEffectType, power, (int)life);

                _statusEffects.Add(ase);
            }
示例#2
0
            public void Add(StatusEffectType statusEffectType, ushort power, ushort secsLeft, TickCount currentTime)
            {
                Remove(statusEffectType);

                var msLeft = secsLeft * 1000;
                var life = msLeft + currentTime;

                var ase = new StatusEffectCollectionItem(statusEffectType, power, (int)life);
                _statusEffects.Add(ase);
            }