feat(upserver): 保存M2客户端KV迁移至本人统计写检查点
保存独立KV用户服务、固定会话存档与原业务接线,以及C3d资料缓存和C3e本人统计写。 保留原PF/AGG路线、业务公式和时序;榜单读取、好友资料、公告、匹配及首场景闸仍待完成。 验证:ServiceHost两条件各33组646断言;Unity CLI Loop编译0错误269警告。 包含相关方案、评审裁决、测试及状态文档。未操作服务器、正式账号或打包。
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using asap.core;
|
||||
using asap.core;
|
||||
using game;
|
||||
using GameCore;
|
||||
using System.Text;
|
||||
@@ -7,6 +7,8 @@ namespace PinballUncountable
|
||||
{
|
||||
public class Manager : IHasMultiplier
|
||||
{
|
||||
readonly game.PlayerDataStorage.IPlayerSaveStore saveStore = GContext.container.Resolve<game.PlayerDataStorage.IPlayerSaveStore>();
|
||||
|
||||
private int _score, _ticketCount, _hitCountLeft, _hitCountRight;
|
||||
private float _inflationRate = 0f;
|
||||
private IEventAggregator _eventAggregator = new EventAggregator();
|
||||
@@ -52,7 +54,7 @@ namespace PinballUncountable
|
||||
|
||||
public bool Load()
|
||||
{
|
||||
return Deserialize(PlayFabMgr.Instance.GetLocalData(_playfabKey));
|
||||
return Deserialize(saveStore.Read(_playfabKey).ValueOrThrow());
|
||||
}
|
||||
|
||||
public void InitTest()
|
||||
@@ -258,7 +260,7 @@ namespace PinballUncountable
|
||||
public void SavePlayfab()
|
||||
{
|
||||
// UnityEngine.Debug.Log("[PinballUncountable]Save Data.");
|
||||
PlayFabMgr.Instance.UpdateUserDataValue(_playfabKey, Serialize());
|
||||
saveStore.Write(_playfabKey, Serialize()).RequireAccepted();
|
||||
}
|
||||
|
||||
public void SavePlayerPreferences(int multiplier)
|
||||
|
||||
Reference in New Issue
Block a user