public virtual void SetEffect(uint handle, EffectTypes type) { if (vJoyManager.Config.Application.VerboseFFBManager) { Log("FFB Effect " + handle + " set " + type.ToString() + " Effect"); } if (!this.IsDeviceReady) { Log("Device not yet ready", LogLevels.INFORMATIVE); return; } SwitchTo(handle, type); }
public static void Effect(this Bridge.Html5.Node node, EffectTypes effect, EffectPrameter options = null, int duration = 400, Action complete = null) { string name = effect.ToString(); new jQuery2.jQuery(node).ToDynamic().effect(name); }
protected virtual void SwitchTo(uint handle, EffectTypes effect) { if (RunningEffects[handle].Type == effect) { return; } RunningEffects[handle].PrevType = RunningEffects[handle].Type; RunningEffects[handle].Type = effect; Log("Effect " + handle.ToString() + " [" + RunningEffects[handle].PrevType.ToString() + "] to [" + effect.ToString() + "]"); }
public override string ToString() { return(name + "(" + attack_damage.ToString() + ")" + " effect:" + effect.ToString()); }