public HealthShieldComponentBase(IShipComponentBaseContainer container, HealthShieldComponentBase clone) { _hp = clone._hp; _shieldval = clone._shieldval; _maxshieldVal = clone._maxshieldVal; _shieldrecoverVal = clone._shieldrecoverVal; _addshieldrecoverVal = clone._addshieldrecoverVal; recoveryinterval = clone.recoveryinterval; reducerecoveryinterval = clone.reducerecoveryinterval; lastTime = DateTime.Now.Ticks; level = clone.level; Actor = container; }
public HealthShieldComponentBase(int hp, int shieldval, int maxshield, int shieldrecoverVal, ILevelActorComponentBaseContainer level, IShipBaseContainer ActorId) { _hp = hp; _shieldval = shieldval; _maxshieldVal = maxshield; _shieldrecoverVal = shieldrecoverVal; recoveryinterval = 1000; _addshieldrecoverVal = 0; reducerecoveryinterval = 0; lastTime = DateTime.Now.Ticks; this.level = level; this.Actor = ActorId; }