private void UpdateStatus(GameSrvStatus newStatus) { // Record the new status _Status = newStatus; StatusChangeEvent?.Invoke(this, new StatusEventArgs(newStatus)); switch (newStatus) { case GameSrvStatus.Paused: RMLog.Info("Server(s) are paused"); break; case GameSrvStatus.Pausing: RMLog.Info("Server(s) are pausing..."); break; case GameSrvStatus.Resuming: RMLog.Info("Server(s) are resuming..."); break; case GameSrvStatus.Started: RMLog.Info("Server(s) have started"); break; case GameSrvStatus.Starting: RMLog.Info("Server(s) are starting..."); break; case GameSrvStatus.Stopped: RMLog.Info("Server(s) have stopped"); break; case GameSrvStatus.Stopping: RMLog.Info("Server(s) are stopping..."); break; } }
public StatusEventArgs(GameSrvStatus status) { Status = status; }