Beispiel #1
0
 public SoftCooldown(SoftCooldown other)
 {
     CooldownActive     = other.CooldownActive;
     CooldownTimer      = other.CooldownTimer;
     CooldownLength     = other.CooldownLength;
     CooldownLotBased   = other.CooldownLotBased;
     CooldownMinimumBid = other.CooldownMinimumBid;
     DueTime            = other.DueTime;
 }
Beispiel #2
0
        public Cooldown(Cooldown other)
        {
            foreach (SoftCooldown otherSoftCooldown in other.softCooldowns)
            {
                SoftCooldown softCooldown = new SoftCooldown
                {
                    CooldownLength     = otherSoftCooldown.CooldownLength,
                    CooldownActive     = otherSoftCooldown.CooldownActive,
                    CooldownLotBased   = otherSoftCooldown.CooldownLotBased,
                    CooldownMinimumBid = otherSoftCooldown.CooldownMinimumBid,
                    CooldownTimer      = otherSoftCooldown.CooldownTimer,
                    DueTime            = otherSoftCooldown.DueTime
                };
                softCooldowns.Add(softCooldown);
            }

            hardCooldown.CooldownTimer    = other.hardCooldown.CooldownTimer;
            hardCooldown.CooldownActive   = other.hardCooldown.CooldownActive;
            hardCooldown.CooldownLength   = other.hardCooldown.CooldownLength;
            hardCooldown.CooldownLotBased = other.hardCooldown.CooldownLotBased;
            hardCooldown.DueTime          = other.hardCooldown.DueTime;
        }