public bool locomotionInputEnabled = true; // setting: whether this locomotion's input is currently enabled // methods // // method: toggle whether this module's input is currently enabled based on the given toggling // public void toggleLocomotionInputEnablement(Toggling toggling) => locomotionInputEnabled = locomotionInputEnabled.toggledBy(toggling);
// methods for: player zonage toggling // // method: toggle the tracking of whether the player is within zonage according to the given toggling // public static void toggleZonage(Toggling toggling) { playerWithinZonage = playerWithinZonage.toggledBy(toggling); }
/// <summary> /// Triggers the Toggling event. /// </summary> /// <param name="e">The event args.</param> public virtual void OnToggle(EventArgs e) { Toggling?.Invoke(this, e); }
public bool inputEnabled = true; // setting: whether this module's input is currently enabled // methods // // method: toggle whether this module's input is currently enabled based on the given toggling // public void toggleInputEnablement(Toggling toggling) { inputEnabled = inputEnabled.toggledBy(toggling); }