/// <summary> /// Loads all map data. /// </summary> public void LoadAllMapData() { _maps = (List <MapInfo>)FileMgr.Load(typeof(List <MapInfo>), ConstantValue.FILE_MAPDATA); if (null == _maps) { _maps = new List <MapInfo> (); } Debug.Log("Map size = " + _maps.Count); }
public static Character Load(int uid, string sForceFilePath = "") { string sPath = ""; bool bForcePath = !string.IsNullOrEmpty(sForceFilePath); if (!bForcePath) { sPath = string.Format(ConstantValue.FILE_NAME_CHARACTER, uid); } else { sPath = sForceFilePath; } return(FileMgr.Load(typeof(Character), sPath, bForcePath) as Character); }
public static LevelCharacterController Load( ) { return(FileMgr.Load(typeof(LevelCharacterController), ConstantValue.FILE_NAME_NEXTLVEXP, true) as LevelCharacterController); }
public static Player Load(int userId) { string sPath = string.Format(ConstantValue.FILE_NAME_PLAYER, userId); return(FileMgr.Load(typeof(Player), sPath) as Player); }