Пример #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);
    }
Пример #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);
    }
Пример #3
0
 public static LevelCharacterController Load( )
 {
     return(FileMgr.Load(typeof(LevelCharacterController),
                         ConstantValue.FILE_NAME_NEXTLVEXP, true) as LevelCharacterController);
 }
Пример #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);
    }