public static string BattleResultStateString(BattleResultState state) { switch (state) { case BattleResultState.SS: return("完全勝利S"); case BattleResultState.S: return("勝利S"); case BattleResultState.A: return("勝利A"); case BattleResultState.B: return("戦術的勝利B"); case BattleResultState.C: return("戦術的敗北C"); case BattleResultState.D: return("敗北D"); case BattleResultState.E: return("敗北E"); default: throw new IndexOutOfRangeException("Unknown state:" + state.ToString()); } }
public static string BattleResultStateShortString(BattleResultState state) { switch (state) { case BattleResultState.SS: return("S"); case BattleResultState.S: return("S"); case BattleResultState.A: return("A"); case BattleResultState.B: return("B"); case BattleResultState.C: return("C"); case BattleResultState.D: return("D"); case BattleResultState.E: return("E"); default: throw new IndexOutOfRangeException("Unknown state:" + state.ToString()); } }
public static string BattleResultStateString(BattleResultState state) { switch (state) { case BattleResultState.SS: return "完全勝利S"; case BattleResultState.S: return "勝利S"; case BattleResultState.A: return "勝利A"; case BattleResultState.B: return "戦術的勝利B"; case BattleResultState.C: return "戦術的敗北C"; case BattleResultState.D: return "敗北D"; case BattleResultState.E: return "敗北E"; default: throw new IndexOutOfRangeException("Unknown state:" + state.ToString()); } }
public static string BattleResultStateShortString(BattleResultState state) { switch (state) { case BattleResultState.SS: return "S"; case BattleResultState.S: return "S"; case BattleResultState.A: return "A"; case BattleResultState.B: return "B"; case BattleResultState.C: return "C"; case BattleResultState.D: return "D"; case BattleResultState.E: return "E"; default: throw new IndexOutOfRangeException("Unknown state:" + state.ToString()); } }