Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Starlight" /> struct.
 /// </summary>
 /// <param name="type">Effect type.</param>
 /// <param name="firstColor">First color to use.</param>
 /// <param name="secondColor">Second color to use.</param>
 /// <param name="duration">Duration of the effect.</param>
 public Starlight(StarlightType type, Color firstColor, Color secondColor, Duration duration)
 {
     Type        = type;
     FirstColor  = firstColor;
     SecondColor = secondColor;
     Duration    = duration;
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Starlight" /> struct.
 /// </summary>
 /// <param name="type">The type of starlight effect to make.</param>
 /// <param name="duration">Duration of the effect.</param>
 /// <param name="first">First color of the effect.</param>
 /// <param name="second">Second color of the effect.</param>
 /// <param name="parameter">Additional effect parameter.</param>
 public Starlight(StarlightType type, Duration duration, Color first, Color second, int parameter = 0)
 {
     Type      = type;
     Duration  = duration;
     First     = first;
     Second    = second;
     Parameter = parameter;
     Size      = Marshal.SizeOf(typeof(Starlight));
 }