static void LoadObjectDB(string path) { if (GlobalSettingsMK8.IDLookup.Count > 0) { return; } var objTable = new ObjDefinitionDb(path); foreach (var obj in objTable.Definitions) { GlobalSettingsMK8.IDLookup.Add(obj.ObjId, obj); } }
// ---- METHODS (PRIVATE) -------------------------------------------------------------------------------------- private static int Main(string[] args) { // Read the parameters. if (args.Length != 2) { return(-1); } string objFlowPath = args[0]; string csvPath = args[1]; // Load the files. _objDb = new ObjDefinitionDb(objFlowPath); LoadAllCourses(objFlowPath); // Write the dump. WriteOutputCsv(csvPath); return(0); }