Esempio n. 1
0
    /// <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);
    }
Esempio n. 2
0
    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);
    }
Esempio n. 3
0
 public static LevelCharacterController Load( )
 {
     return(FileMgr.Load(typeof(LevelCharacterController),
                         ConstantValue.FILE_NAME_NEXTLVEXP, true) as LevelCharacterController);
 }
Esempio n. 4
0
    public static Player Load(int userId)
    {
        string sPath = string.Format(ConstantValue.FILE_NAME_PLAYER, userId);

        return(FileMgr.Load(typeof(Player), sPath) as Player);
    }