Beispiel #1
0
 /// <summary>
 /// Intializes a new <see cref="EffectGiveCommand"/>
 /// </summary>
 /// <param name="selector">Selector selecting entities to give the effect to</param>
 /// <param name="effect">The effect to give</param>
 /// <param name="seconds">The amount of seconds the entities will have the effect for</param>
 /// <param name="amplifier">The amplifier of the effect</param>
 /// <param name="hideParticles">If the effect shouldn't show particles</param>
 public EffectGiveCommand(BaseSelector selector, ID.Effect effect, int seconds, byte amplifier, bool hideParticles)
 {
     Selector      = selector;
     Seconds       = seconds;
     Amplifier     = amplifier;
     Effect        = effect;
     HideParticles = hideParticles;
 }
Beispiel #2
0
 /// <summary>
 /// Gives the specified effect to the selected entities
 /// </summary>
 /// <param name="selector">the <see cref="BaseSelector"/> to use</param>
 /// <param name="effect">the effect to give</param>
 /// <param name="time">the duration of the effect</param>
 /// <param name="amplifier">the amplifier of the effect (0 = level 1)</param>
 /// <param name="hideParticles">if the particles from the effect should be hidden or not</param>
 public void Give(BaseSelector selector, ID.Effect effect, int time, byte amplifier = 0, bool hideParticles = true)
 {
     ForFunction.AddCommand(new EffectGiveCommand(selector, effect, time, amplifier, hideParticles));
 }
Beispiel #3
0
 /// <summary>
 /// Intializes a new stew effect
 /// </summary>
 /// <param name="effect">The effect</param>
 /// <param name="duration">The duration of the effect</param>
 public StewEffect(ID.Effect effect, int duration)
 {
     Effect   = effect;
     Duration = duration;
 }
Beispiel #4
0
 /// <summary>
 /// creates a new <see cref="Effect"/>
 /// </summary>
 /// <param name="Effect">the effect</param>
 public Effect(ID.Effect Effect)
 {
     EffectName = Effect;
 }