/// <summary> /// Loads this modifier from a given binary reader. /// </summary> /// <param name="reader">Binary reader to load this modifier from.</param> public virtual void Load(BinaryReader reader) { _effectDuration = new StartFinish(reader.ReadInt32(), reader.ReadInt32()); }
/// <summary> /// Invoked when a new instance of this class is created. /// </summary> /// <param name="effectDuration">The start and finish time which the type effects particles in between.</param> /// <param name="colorTint">Starting and ending color tint in the form of an array.</param> public ParticleColorModifier(StartFinish effectDuration, StartFinishColor colorTint) { _effectDuration = effectDuration; _colorTint = colorTint; }
/// <summary> /// Invoked when a new instance of this class is created. /// </summary> /// <param name="effectDuration">The start and finish time which the type effects particles in between.</param> /// <param name="startFrame">Starting frame of animation.</param> /// <param name="endFrame">Ending frame of animation.</param> public ParticleAnimationModifier(StartFinish effectDuration, StartFinish frames) { _effectDuration = effectDuration; _frames = frames; }
/// <summary> /// Invoked when a new instance of this class is created. /// </summary> /// <param name="effectDuration">The start and finish time which the type effects particles in between.</param> /// <param name="xAcceleration">Acceleration on the x-axis.</param> /// <param name="yAcceleration">Acceleration on the y-axis.</param> /// <param name="xAccelerationRandom">Minimum and maximum randomization of acceleration on the x axis in the form of an array.</param> /// <param name="yAccelerationRandom">Minimum and maximum randomization of acceleration on the y axis in the form of an array.</param> public ParticleAccelerationModifier(StartFinish effectDuration, StartFinishF xAcceleration, StartFinishF yAcceleration, MinMaxF xAccelerationRandom, MinMaxF yAccelerationRandom) { _effectDuration = effectDuration; _xAcceleration = xAcceleration; _yAcceleration = yAcceleration; _xAccelerationRandom = xAccelerationRandom; _yAccelerationRandom = yAccelerationRandom; }
/// <summary> /// Invoked when a new instance of this class is created. /// </summary> /// <param name="effectDuration">The start and finish time which the type effects particles in between.</param> /// <param name="xScale">Scale on the x-axis.</param> /// <param name="yScale">Scale on the y-axis.</param> /// <param name="zScale">Scale on the z-axis.</param> /// <param name="xScaleRandom">Minimum and maximum randomization of scale on the x axis in the form of an array.</param> /// <param name="yScaleRandom">Minimum and maximum randomization of scale on the y axis in the form of an array.</param> /// <param name="zScaleRandom">Minimum and maximum randomization of scale on the z axis in the form of an array.</param> public ParticleScaleModifier(StartFinish effectDuration, StartFinishF xScale, StartFinishF yScale, StartFinishF zScale, MinMaxF xScaleRandom, MinMaxF yScaleRandom, MinMaxF zScaleRandom) { _effectDuration = effectDuration; _xScale = xScale; _yScale = yScale; _zScale = zScale; _xScaleRandom = xScaleRandom; _yScaleRandom = yScaleRandom; _zScaleRandom = zScaleRandom; }
/// <summary> /// Invoked when a new instance of this class is created. /// </summary> /// <param name="effectDuration">The start and finish time which the type effects particles in between.</param> /// <param name="xRotation">Rotation on the x-axis.</param> /// <param name="yRotation">Rotation on the y-axis.</param> /// <param name="zRotation">Rotation on the z-axis.</param> /// <param name="xScaleRotation">Minimum and maximum randomization of Rotation on the x axis in the form of an array.</param> /// <param name="yScaleRotation">Minimum and maximum randomization of Rotation on the y axis in the form of an array.</param> /// <param name="zScaleRotation">Minimum and maximum randomization of Rotation on the z axis in the form of an array.</param> public ParticleRotationModifier(StartFinish effectDuration, StartFinishF xRotation, StartFinishF yRotation, StartFinishF zRotation, MinMaxF xRotationRandom, MinMaxF yRotationRandom, MinMaxF zRotationRandom) { _effectDuration = effectDuration; _xRotation = xRotation; _yRotation = yRotation; _zRotation = zRotation; _xRotationRandom = xRotationRandom; _yRotationRandom = yRotationRandom; _zRotationRandom = zRotationRandom; }