/// <summary> /// Get Pegasus Format Type from RockGameMode /// </summary> /// <param name="gameMode">The RockGameMode</param> /// <returns>The FormatType</returns> public static FormatType GetFormatType(RockGameMode gameMode) { switch (gameMode) { case RockGameMode.Casual: case RockGameMode.Ranked: return(FormatType.FT_STANDARD); case RockGameMode.NormalPractice: case RockGameMode.ExpertPractice: case RockGameMode.WildCasual: case RockGameMode.WildRanked: return(FormatType.FT_WILD); default: return(FormatType.FT_UNKNOWN); } }
/// <summary> /// Get Pegasus Game Type from RockGameMode /// </summary> /// <param name="gameMode">The RockGameMode</param> /// <returns>The GameType</returns> public static GameType GetGameType(RockGameMode gameMode) { switch (gameMode) { case RockGameMode.NormalPractice: case RockGameMode.ExpertPractice: return(GameType.GT_VS_AI); case RockGameMode.Casual: case RockGameMode.WildCasual: return(GameType.GT_CASUAL); case RockGameMode.Ranked: case RockGameMode.WildRanked: return(GameType.GT_RANKED); default: return(GameType.GT_UNKNOWN); } }