/// <summary>Reset the component to its initial state, so that it may be reused without side effects.</summary> public override void Reset() { base.Reset(); Group = ParticleEffects.EffectGroup.None; Name = null; Scale = 0f; Offset = Vector2.Zero; Direction = 0f; }
/// <summary>Initializes the component using the specified effect.</summary> /// <param name="group">The group.</param> /// <param name="effect">The effect.</param> /// <param name="scale">The scale.</param> /// <param name="offset">The offset.</param> /// <param name="direction">The direction.</param> /// <returns></returns> public ItemEffect Initialize( ParticleEffects.EffectGroup group, string effect, float scale, Vector2 offset, float direction) { Group = group; Name = effect; Scale = scale; Offset = offset; Direction = direction; return(this); }