public ThrustProxyMechanic(ThrustMechanic thrustMechanic) { if (thrustMechanic == null) { throw new ArgumentNullException(nameof(thrustMechanic)); } ThrustMechanics = thrustMechanic; }
public MoveRandomlyMechanic( ThrustMechanic thrustMechanics, RandomRotationMechanic randomRotationMechanic ) { ThrustMechanics = thrustMechanics ?? throw new ArgumentNullException(nameof(ThrustMechanics)); RandomRotationMechanic = randomRotationMechanic ?? throw new ArgumentNullException(nameof(RandomRotationMechanic)); }
public ThrustProxyFuncFactorMechanic(ThrustMechanic thrustMechanic, Func <float> getFactor) { if (thrustMechanic == null) { throw new ArgumentNullException(nameof(thrustMechanic)); } ThrustMechanics = thrustMechanic; if (getFactor == null) { throw new ArgumentNullException(nameof(getFactor)); } GetFactor = getFactor; }
public ThrustProxyImageDataMechanic(ThrustMechanic thrustMechanic) { ThrustMechanics = thrustMechanic ?? throw new ArgumentNullException(nameof(thrustMechanic)); }