/// <summary> /// Change the mode of the command manager. /// </summary> /// <param name="pNewMode">The command manager new mode.</param> /// <return>True if the mode has been changed, false otherwise.</return> public bool SwitchMode(UserCommandManagerMode pNewMode) { if (pNewMode == this.mMode) { return(false); } // Cleaning the sessions this. }
/// <summary> /// Change the mode of the command manager. /// </summary> /// <param name="pNewMode">The command manager new mode.</param> /// <return>True if the mode has been changed, false otherwise.</return> public bool SwitchMode(UserCommandManagerMode pNewMode) { if (pNewMode == this.mMode) { return(false); } // Cleaning the sessions this.mSessions.Clear(); // Updating the mode. this.mMode = pNewMode; return(true); }