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));
 }
예제 #4
0
 public AssetManager()
 {
     JSONManager    = new JSONManager();
     TextureManager = new TexturePoolManager();
     AudioManager   = new SoundPoolManager();
 }
예제 #5
0
 public void SaveLevelToFileAbsolute(string levelPath, Level level)
 {
     JSONManager.SaveObject(levelPath, level);
 }
예제 #6
0
 public void SaveLevelToFile(string levelName, Level level)
 {
     JSONManager.SaveObject(LevelsPath + levelName, level);
 }
예제 #7
0
 public T LoadLevelFromFileAbsolute <T>(string levelPath) where T : Level
 {
     return(JSONManager.LoadObject <T>(levelPath));
 }
예제 #8
0
 public T LoadLevelFromFile <T>(string levelName) where T : Level
 {
     return(JSONManager.LoadObject <T>(LevelsPath + levelName));
 }