public MovementEffect(string name, float multiplier, EffectStyle style, EffectType type) { effectName = name; movementMultiplier = multiplier; this.style = style; this.type = type; }
public void Load(SaveData data) { effectName = data.Get("effectName"); remainingTime = int.Parse(data.Get("remainingTime")); movementMultiplier = int.Parse(data.Get("movementMultiplier")); style = (EffectStyle)Enum.Parse(typeof(EffectStyle), data.Get("style")); type = (EffectType)Enum.Parse(typeof(EffectType), data.Get("type")); }
/// <summary> /// Defines a text style. /// </summary> /// <param name="fontStyle">The font style to use</param> /// <param name="foregroundColor">Foreground color</param> /// <param name="backgroundColor">Background clor</param> /// <param name="effect">Effect to use</param> /// <param name="effectColor">Effect color to use</param> public TextStyle(FontStyle fontStyle, Color foregroundColor, Color backgroundColor, EffectStyle effect, Color effectColor) { myFontStyle = fontStyle; myForegroundColor = foregroundColor; myBackgroundColor = backgroundColor; myEffect = effect; myEffectColor = effectColor; }