public ParticleType(ParticleType copyFrom) { this.Source = copyFrom.Source; this.SourceChooser = copyFrom.SourceChooser; this.Color = copyFrom.Color; this.Color2 = copyFrom.Color2; this.ColorMode = copyFrom.ColorMode; this.FadeMode = copyFrom.FadeMode; this.SpeedMin = copyFrom.SpeedMin; this.SpeedMax = copyFrom.SpeedMax; this.SpeedMultiplier = copyFrom.SpeedMultiplier; this.Acceleration = copyFrom.Acceleration; this.Friction = copyFrom.Friction; this.Direction = copyFrom.Direction; this.DirectionRange = copyFrom.DirectionRange; this.LifeMin = copyFrom.LifeMin; this.LifeMax = copyFrom.LifeMax; this.Size = copyFrom.Size; this.SizeRange = copyFrom.SizeRange; this.RotationMode = copyFrom.RotationMode; this.SpinMin = copyFrom.SpinMin; this.SpinMax = copyFrom.SpinMax; this.SpinFlippedChance = copyFrom.SpinFlippedChance; this.ScaleOut = copyFrom.ScaleOut; this.UseActualDeltaTime = copyFrom.UseActualDeltaTime; ParticleType.AllTypes.Add(this); }
public ParticleType() { this.Color = this.Color2 = Color.white; this.ColorMode = ParticleType.ColorModes.Static; this.FadeMode = ParticleType.FadeModes.None; this.SpeedMin = this.SpeedMax = 0.0f; this.SpeedMultiplier = 1f; this.Acceleration = Vector2.zero; this.Friction = 0.0f; this.Direction = this.DirectionRange = 0.0f; this.LifeMin = this.LifeMax = 0.0f; this.Size = 2f; this.SizeRange = 0.0f; this.SpinMin = this.SpinMax = 0.0f; this.SpinFlippedChance = false; this.RotationMode = ParticleType.RotationModes.None; ParticleType.AllTypes.Add(this); }