feat:1、创建项目

This commit is contained in:
2026-06-25 15:22:28 +08:00
commit c05a65cdc3
6577 changed files with 1168287 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
using ChillConnect;
using Roy;
using SGModule.DataStorage;
using SGModule.NetKit;
public static partial class DataMgr {
public static void InitPreferences(string jsonStr) {
DataManager.Instance.AddSaveCallback(CloudDataSaver.UpdateData);
var loginModel = LoginKit.Instance.LoginModel;
// Debug.Log($"barry init Preferences-----0--{loginModel.uid}--{userID}");
if (loginModel.NewPlayer || loginModel.Uid != UserID.Value) {
// Debug.Log($"barry init Preferences----1---");
DataManager.Instance.ClearAllData();
UserID.Value = loginModel.Uid;
GameHelper.InitNewWatchCDList(true);
}
GameHelper.InitNewWatchCDList();
// ObjectExtensionsTest.AsTestRun();
// Debug.Log($"barry init Preferences----2---{jsomnStr}");
DataManager.Instance.ImportFromJson(jsonStr, loginModel.PlayDataVer);
// UserCoreMgr.Instance.LoadItemData();
// ItemManager.GetInstance.LoadItemData();
}
}