public static void SaveConfig(string configName, Dictionary <string, string> data) { JSONManager.SaveObject(configName, data); }
public static Dictionary <string, string> LoadConfigAsDict(string configName, bool validate) { return(JSONManager.LoadObject <Dictionary <string, string> >(GameConfigFolderPath + configName, validate)); }
public static Dictionary <string, string> LoadConfigAsDictAbsolute(string configPath, bool validate) { return(JSONManager.LoadObject <Dictionary <string, string> >(configPath, validate)); }
public AssetManager() { JSONManager = new JSONManager(); TextureManager = new TexturePoolManager(); AudioManager = new SoundPoolManager(); }
public void SaveLevelToFileAbsolute(string levelPath, Level level) { JSONManager.SaveObject(levelPath, level); }
public void SaveLevelToFile(string levelName, Level level) { JSONManager.SaveObject(LevelsPath + levelName, level); }
public T LoadLevelFromFileAbsolute <T>(string levelPath) where T : Level { return(JSONManager.LoadObject <T>(levelPath)); }
public T LoadLevelFromFile <T>(string levelName) where T : Level { return(JSONManager.LoadObject <T>(LevelsPath + levelName)); }