Exemple #1
0
        //保存数据到本地
        public static void SaveDataToLocal()
        {
            EntitasData data = new EntitasData();

            data.ViewPath           = ViewPath;
            data.ServicePath        = ServicePath;
            data.SystemPath         = SystemPath;
            data.ServiceManagerPath = ServiceManagerPath;
            data.GameFeaturePath    = GameFeaturePath;
            data.InputFeaturePath   = InputFeaturePath;
            data.ViewFeaturePath    = ViewFeaturePath;
            ToolCacheManager.SaveCacheObject(PathManager.EntitasDataPath, data);
        }
Exemple #2
0
        //从本地读取数据
        private static void ReadDataFromLocal()
        {
            EntitasData data = ToolCacheManager.GetCacheObject <EntitasData>(PathManager.EntitasDataPath);

            if (data != null)
            {
                ViewPath           = data.ViewPath;
                ServicePath        = data.ServicePath;
                SystemPath         = data.SystemPath;
                ServiceManagerPath = data.ServiceManagerPath;
                GameFeaturePath    = data.GameFeaturePath;
                InputFeaturePath   = data.InputFeaturePath;
                ViewFeaturePath    = data.ViewFeaturePath;
            }
        }