void LoadLevelList() { _levelList = new LevelDataList(); foreach (var typename in LevelEditorInfo.Instance.LevelNumToLevelType.Values) { var files = Directory.GetFiles(LevelEditorInfo.Instance.FullConfigurationFolderPath, typename + ".json"); foreach (var filename in files) { var node = LevelEditorUtils.JSONNodeFromFileFullPath(filename); _levelList.Update(node); } } }
public void LoadAllInfo() { UpdateMetaInfo(); CheckWhichGame(); UpdateGameUniqueData(EditorConfigPath + FILE_GAME_UNIQUE); UpdateLevelSettingsData(EditorConfigPath + FILE_LEVEL_SETTINGS); UpdateGameItems(EditorConfigPath + FILE_GAME_ITEMS); //other game unique data gameConfig = new GameConfig(); var gameConfigNode = LevelEditorUtils.JSONNodeFromFileFullPath(FullConfigurationFolderPath + FILE_GAME_CONFIG); gameConfig.Update(gameConfigNode); UpdateDefault(); }