/// <summary> /// Send to the player the event that will allow their input doing the maze gameplay, and their direction/barrier/hint data. /// </summary> /// <param name="player"></param> /// <param name="rollForHint">If true, execute the random to determine if the hint should be sent, if false just send only if hint already exists</param> private void SendAllowMazeEvent(FreeSOMazePlayer player, bool rollForHint) { if (player?.Cooldown >= GLOBAL_COOLDOWN) { player?.Send("FreeSOMaze_allow_maze", player?.GetLocationData(GetHint(player, rollForHint))); } else { player?.QueueAllowMazeEvent("FreeSOMaze_allow_maze", player?.GetLocationData(GetHint(player, rollForHint))); } }