private void TypeDoesntExist(BPE_Entry entry, string type) { Console.WriteLine(String.Format("BPE Type{0} was not found on BPE_Entry (index = {1})", type, entry.Index)); Utils.WaitForInputThenQuit(); }
private void TypeValidation(BPE_SubEntry subEntry, BPE_Entry entry) { switch (subEntry.GetBpeType()) { case 0: if (subEntry.Type0 == null) { TypeDoesntExist(entry, subEntry.I_00); } break; case 1: if (subEntry.Type1 == null) { TypeDoesntExist(entry, subEntry.I_00); } break; case 2: if (subEntry.Type2 == null) { TypeDoesntExist(entry, subEntry.I_00); } break; case 3: if (subEntry.Type3 == null) { TypeDoesntExist(entry, subEntry.I_00); } break; case 4: if (subEntry.Type4 == null) { TypeDoesntExist(entry, subEntry.I_00); } break; case 5: if (subEntry.Type5 == null) { TypeDoesntExist(entry, subEntry.I_00); } break; case 6: if (subEntry.Type6 == null) { TypeDoesntExist(entry, subEntry.I_00); } break; case 7: if (subEntry.Type7 == null) { TypeDoesntExist(entry, subEntry.I_00); } break; case 8: if (subEntry.Type8 == null) { TypeDoesntExist(entry, subEntry.I_00); } break; case 9: if (subEntry.Type9 == null) { TypeDoesntExist(entry, subEntry.I_00); } break; default: Console.WriteLine(String.Format("{0} is not a valid BPE_Type (BPE_Entry: Index = {1})", subEntry.I_00, entry.Index)); Utils.WaitForInputThenQuit(); break; } }