fix:1、同步部分arrow game的ui资源和代码

This commit is contained in:
2026-07-10 14:08:25 +08:00
parent f2586d11a6
commit dd56ccb469
213 changed files with 6371 additions and 1449 deletions
+77 -69
View File
@@ -1,69 +1,77 @@
public static class DataKeys
{
public const string UserID = "UserID";
public const string FirstLogin = "FirstLogin";
public const string coin = "coin";
public const string ticket = "ticket";
public const string maxCoin = "maxCoin";
public const string nextOpenWheelStampTime = "nextOpenWheelStampTime";
public const string thisDayWatchSlyderVideoNum = "thisDayWatchSlyderVideoNum";
public const string playerName = "playerName";
public const string playerAvatarId = "playerAvatarId";
public const string signState = "signState";
public const string gameOfCount = "gameOfCount";
public const string gameLevel = "gameLevel";
public const string exchangeAccount = "exchangeAccount";
public const string exchangeName = "exchangeName";
public const string isShowRewardFly101 = "isShowRewardFly101";
public const string isShowRewardFly102 = "isShowRewardFly102";
public const string playReawrd111 = "playReawrd111";
public const string isShowRewardFly111 = "isShowRewardFly111";
public const string isShowOpenReward = "isShowOpenReward";
public const string isLastH5Tab = "isLastH5Tab";
public const string adChFlyShowTime = "adChFlyShowTime";
public const string h5StayTime = "h5StayTime";
public const string videoWatchCount = "videoWatchCount";
public const string makeupTaskHistory = "makeupTaskHistory";
public const string makeupTaskH5Time = "makeupTaskH5Time";
public const string gameStartCount = "gameStartCount";
public const string loginGameTodayTimes = "loginGameTodayTimes";
public const string date = "date";
public const string ch_level = "ch_level";
public const string SaveObject = "SaveObject";
public const string LevelData = "LevelData";
public const string AdWatchCount = "AdWatchCount"; // 看广告次数
public const string AvailableDiceRolls = "AvailableDiceRolls"; // 可摇骰子次数
public const string propBackNum = "propBackNum"; // 返回道具数量
public const string propRefreshNum = "propRefreshNum"; // 刷新道具数量
public const string propRemoveNum = "propRemoveNum"; // 移除道具数量
public const string resurrectionState = "resurrectionState"; //复活状态:4种,数字3为可以用广告和金币复活,2为只能用广告,1为只能用金币。0为不能复活
public const string gameExperience = "gameExperience";
public const string getFirstReaward = "getFirstReaward"; // 是否已领取新手奖励
public const string noviceGuide = "noviceGuide"; // 是否新手引导
public const string gameTime = "gameTime"; // 游戏时长
public const string gameDay = "gameDay";
public const string SecretUnlockList = "SecretUnlockList"; // 秘密相册解锁列表
public const string SecretUnlockCd = "SecretUnlockCd"; // 秘密相册看广告的剩余时间
public const string SecretUnlockADs = "SecretUnlockADs"; // 秘密相册看广告数(每一个图集的广告数不通用)
public const string IsUnlockSecret = "IsUnlockSecret"; // 秘密相册是否解锁(-1:未解锁 0:刚解锁 1:已打开秘密相册)
public const string VipLevel = "VipLevel"; // vip等级(1:7天 2:30天 3:365天)
public const string VipExpirationTime = "VipExpirationTime"; // vip失效时间(默认为0
public const string LiveDataList = "LiveDataList";
public const string IsUnlockLive = "IsUnlockLive"; // live是否解锁(-1:未解锁 0:刚解锁 1:已打开live)
public const string ApplePayTransactionID = "ApplePayTransactionID"; //ios购买后的非消耗性订单id
public const string LiveDataDic = "LiveDataDic";
public const string LevelUnlockList = "LevelUnlockList"; // 图鉴已解锁的index列表
public const string IsUnlockChat = "IsUnlockChat";
public const string ChatData = "ChatData";
public const string ChatNumber = "ChatNumber";
public const string ChatRecoverDays = "ChatRecoverDays";
public const string ChatFreeNumber = "ChatFreeNumber";
public const string curResVersion = "curResVersion";
public const string LevelUnlockListFree = "LevelUnlockListFree";
public const string LevelUnlockListAD = "LevelUnlockListAD";
public const string LevelUnlockListSpecial = "LevelUnlockListSpecial";
public const string LevelUnlockListVIP = "LevelUnlockListVIP";
public const string LevelUnlockListNew = "LevelUnlockListNew";
public const string clearAllOrder = "clearAllOrder";
}
public static class DataKeys
{
public const string UserID = "UserID";
public const string FirstLogin = "FirstLogin";
public const string coin = "coin";
public const string ticket = "ticket";
public const string maxCoin = "maxCoin";
public const string nextOpenWheelStampTime = "nextOpenWheelStampTime";
public const string thisDayWatchSlyderVideoNum = "thisDayWatchSlyderVideoNum";
public const string playerName = "playerName";
public const string playerAvatarId = "playerAvatarId";
public const string signState = "signState";
public const string gameOfCount = "gameOfCount";
public const string gameLevel = "gameLevel";
public const string exchangeAccount = "exchangeAccount";
public const string exchangeName = "exchangeName";
public const string isShowRewardFly101 = "isShowRewardFly101";
public const string isShowRewardFly102 = "isShowRewardFly102";
public const string playReawrd111 = "playReawrd111";
public const string isShowRewardFly111 = "isShowRewardFly111";
public const string isShowOpenReward = "isShowOpenReward";
public const string isLastH5Tab = "isLastH5Tab";
public const string adChFlyShowTime = "adChFlyShowTime";
public const string h5StayTime = "h5StayTime";
public const string videoWatchCount = "videoWatchCount";
public const string makeupTaskHistory = "makeupTaskHistory";
public const string makeupTaskH5Time = "makeupTaskH5Time";
public const string gameStartCount = "gameStartCount";
public const string loginGameTodayTimes = "loginGameTodayTimes";
public const string date = "date";
public const string ch_level = "ch_level";
public const string SaveObject = "SaveObject";
public const string LevelData = "LevelData";
public const string AdWatchCount = "AdWatchCount"; // 看广告次数
public const string AvailableDiceRolls = "AvailableDiceRolls"; // 可摇骰子次数
public const string propBackNum = "propBackNum"; // 返回道具数量
public const string propRefreshNum = "propRefreshNum"; // 刷新道具数量
public const string propRemoveNum = "propRemoveNum"; // 移除道具数量
public const string resurrectionState = "resurrectionState"; //复活状态:4种,数字3为可以用广告和金币复活,2为只能用广告,1为只能用金币。0为不能复活
public const string gameExperience = "gameExperience";
public const string getFirstReaward = "getFirstReaward"; // 是否已领取新手奖励
public const string noviceGuide = "noviceGuide"; // 是否新手引导
public const string gameTime = "gameTime"; // 游戏时长
public const string gameDay = "gameDay";
public const string SecretUnlockList = "SecretUnlockList"; // 秘密相册解锁列表
public const string SecretUnlockCd = "SecretUnlockCd"; // 秘密相册看广告的剩余时间
public const string SecretUnlockADs = "SecretUnlockADs"; // 秘密相册看广告数(每一个图集的广告数不通用)
public const string IsUnlockSecret = "IsUnlockSecret"; // 秘密相册是否解锁(-1:未解锁 0:刚解锁 1:已打开秘密相册)
public const string VipLevel = "VipLevel"; // vip等级(1:7天 2:30天 3:365天)
public const string VipExpirationTime = "VipExpirationTime"; // vip失效时间(默认为0
public const string LiveDataList = "LiveDataList";
public const string IsUnlockLive = "IsUnlockLive"; // live是否解锁(-1:未解锁 0:刚解锁 1:已打开live)
public const string ApplePayTransactionID = "ApplePayTransactionID"; //ios购买后的非消耗性订单id
public const string LiveDataDic = "LiveDataDic";
public const string LevelUnlockList = "LevelUnlockList"; // 图鉴已解锁的index列表
public const string IsUnlockChat = "IsUnlockChat";
public const string ChatData = "ChatData";
public const string ChatNumber = "ChatNumber";
public const string ChatRecoverDays = "ChatRecoverDays";
public const string ChatFreeNumber = "ChatFreeNumber";
public const string curResVersion = "curResVersion";
public const string LevelUnlockListFree = "LevelUnlockListFree";
public const string LevelUnlockListAD = "LevelUnlockListAD";
public const string LevelUnlockListSpecial = "LevelUnlockListSpecial";
public const string LevelUnlockListVIP = "LevelUnlockListVIP";
public const string LevelUnlockListNew = "LevelUnlockListNew";
public const string clearAllOrder = "clearAllOrder";
public const string ArrowResultLevel = "ArrowResultLevel"; //箭头游戏的结算等级(1:免费,0:看广告)
public const string ArrowDarkTheme = "ArrowDarkTheme"; //箭头游戏的黑夜模式(0:黑夜,1:白天)
public const string ArrowTheme = "ArrowTheme"; //箭头游戏的主题(0:黑色 1:虫子 2:彩色)
public const string ExchangeModeToggle = "ExchangeModeToggle";
public const string ExchangeProcessMode = "ExchangeProcessMode";
public const string CHProcessMode = "CHProcessMode";
}
+120 -113
View File
@@ -1,113 +1,120 @@
using System.Collections.Generic;
using SGModule.DataStorage;
using RedHotRoast;
public static partial class DataMgr
{
public static string long_name;
public static string short_name;
private static DataStorage<T> BindDataStorage<T>(string key, string messageKey = null, T @default = default)
{
return new DataStorage<T>(key, @default, (oldValue, newValue) =>
{
// 构造 ChangeValue 对象
var changeValue = new ChangeValue<T>
{
oldValue = oldValue,
newValue = newValue
};
if (messageKey.IsNullOrWhiteSpace())
{
return;
}
// 调用特定类型的分发器
PreferencesDispatcher<T>.Instance.Dispatch(messageKey, changeValue);
// 调用全局数据分发器(如果需要)
DataDispatcher.Instance.Dispatch(messageKey);
});
}
#region ValueType
public static DataStorage<bool> FirstLogin = new(DataKeys.FirstLogin, true);
public static DataStorage<long> UserID = BindDataStorage(DataKeys.UserID, @default: -1L);
public static DataStorage<long> NextOpenWheelStampTime = BindDataStorage<long>(DataKeys.nextOpenWheelStampTime);
public static DataStorage<int> ThisDayWatchSlyderVideoNum = BindDataStorage<int>(DataKeys.thisDayWatchSlyderVideoNum);
public static DataStorage<int> Coin = BindDataStorage<int>(DataKeys.coin, DataMsg.currency101);
public static DataStorage<decimal> Ticket = BindDataStorage<decimal>(DataKeys.ticket, DataMsg.currency102);
public static DataStorage<int> MaxCurrency101 = BindDataStorage<int>(DataKeys.maxCoin);
public static DataStorage<string> PlayerName = BindDataStorage<string>(DataKeys.playerName, DataMsg.playerName);
public static DataStorage<int> PlayerAvatarId = BindDataStorage<int>(DataKeys.playerAvatarId, DataMsg.playerAvatarId);
public static DataStorage<int> GameOfCount = BindDataStorage<int>(DataKeys.gameOfCount);
public static DataStorage<int> GameLevel = BindDataStorage(DataKeys.gameLevel, @default: 1);
public static DataStorage<string> ExchangeAccount = BindDataStorage<string>(DataKeys.exchangeAccount);
public static DataStorage<string> ExchangeName = BindDataStorage<string>(DataKeys.exchangeName);
public static DataStorage<bool> IsShowRewardFly101 = BindDataStorage<bool>(DataKeys.isShowRewardFly101, DataMsg.isShowRewardFly101);
public static DataStorage<bool> IsShowRewardFly102 = BindDataStorage<bool>(DataKeys.isShowRewardFly102);
public static DataStorage<decimal> PlayReawrd111 = BindDataStorage<decimal>(DataKeys.playReawrd111, DataMsg.playReawrd111);
public static DataStorage<bool> IsShowRewardFly111 = BindDataStorage<bool>(DataKeys.isShowRewardFly111, DataMsg.isShowRewardFly111);
public static DataStorage<bool> IsShowOpenReward = BindDataStorage<bool>(DataKeys.isShowOpenReward);
public static DataStorage<bool> IsLastH5Tab = BindDataStorage<bool>(DataKeys.isLastH5Tab);
public static DataStorage<long> AdChFlyShowTime = BindDataStorage<long>(DataKeys.adChFlyShowTime);
public static DataStorage<int> H5StayTime = BindDataStorage<int>(DataKeys.h5StayTime);
public static DataStorage<int> VideoWatchCount = BindDataStorage<int>(DataKeys.videoWatchCount);
public static DataStorage<decimal> MakeupTaskH5Time = BindDataStorage<decimal>(DataKeys.makeupTaskH5Time);
public static DataStorage<int> GameStartCount = BindDataStorage<int>(DataKeys.gameStartCount);
public static DataStorage<int> LoginGameTodayTimes = BindDataStorage<int>(DataKeys.loginGameTodayTimes);
public static DataStorage<string> Date = BindDataStorage<string>(DataKeys.date);
public static DataStorage<int> ChLevel = BindDataStorage<int>(DataKeys.ch_level);
public static DataStorage<string> LevelData = new(DataKeys.LevelData, cloudSave: false);
public static DataStorage<int> AdWatchCount = BindDataStorage<int>(DataKeys.AdWatchCount);
public static DataStorage<int> AvailableDiceRolls = BindDataStorage<int>(DataKeys.AvailableDiceRolls);
public static DataStorage<int> PropBackNum = BindDataStorage<int>(DataKeys.propBackNum);
public static DataStorage<int> PropRefreshNum = BindDataStorage<int>(DataKeys.propRefreshNum);
public static DataStorage<int> PropRemoveNum = BindDataStorage<int>(DataKeys.propRemoveNum);
public static DataStorage<int> ResurrectionState = BindDataStorage<int>(DataKeys.resurrectionState, null, 3);
public static DataStorage<int> GameExperience = BindDataStorage<int>(DataKeys.gameExperience);
public static DataStorage<bool> GetFirstReaward = BindDataStorage<bool>(DataKeys.getFirstReaward);
public static DataStorage<bool> NoviceGuide = BindDataStorage<bool>(DataKeys.noviceGuide);
public static DataStorage<int> GameTime = BindDataStorage<int>(DataKeys.gameTime);
public static DataStorage<int> GameDay = BindDataStorage<int>(DataKeys.gameDay);
public static DataStorage<int> IsUnlockSecret = BindDataStorage<int>(DataKeys.IsUnlockSecret, null, -1);
public static DataStorage<int> VipLevel = BindDataStorage<int>(DataKeys.VipLevel, null, -1);
public static DataStorage<long> VipExpirationTime = BindDataStorage<long>(DataKeys.VipExpirationTime);
public static DataStorage<int> IsUnlockLive = BindDataStorage<int>(DataKeys.IsUnlockLive, null, -1);
public static DataStorage<string> curResVersion = new(DataKeys.curResVersion, cloudSave: false);
public static DataStorage<bool> clearAllOrder = BindDataStorage<bool>(DataKeys.clearAllOrder);
#endregion
#region RefType
public static DataStorage<List<long>> SignState = BindDataStorage(DataKeys.signState, @default: new List<long>());
public static DataStorage<List<MakeupTaskData>> MakeupTaskHistory = BindDataStorage(DataKeys.makeupTaskHistory, @default: new List<MakeupTaskData>());
public static DataStorage<Saveobject> SaveObject = BindDataStorage(DataKeys.SaveObject, @default: new Saveobject());
public static DataStorage<List<int>> SecretUnlockList = BindDataStorage(DataKeys.SecretUnlockList, @default: new List<int>());
public static DataStorage<Dictionary<int, int>> SecretUnlockCd = new(DataKeys.SecretUnlockCd, defaultValue: new Dictionary<int, int>(), cloudSave: false);
public static DataStorage<Dictionary<int, int>> SecretUnlockADs = new(DataKeys.SecretUnlockADs, defaultValue: new Dictionary<int, int>());
public static DataStorage<List<LiveData>> LiveDataList = new(DataKeys.LiveDataList, defaultValue: new List<LiveData>());
public static DataStorage<List<string>> ApplePayTransactionID = BindDataStorage(DataKeys.ApplePayTransactionID, @default: new List<string>());
public static DataStorage<Dictionary<int, LiveData>> LiveDataDic = new(DataKeys.LiveDataDic, defaultValue: new Dictionary<int, LiveData>());
public static DataStorage<List<int>> LevelUnlockList = new(DataKeys.LevelUnlockList, defaultValue: new List<int>());
public static DataStorage<int> IsUnlockChat = BindDataStorage<int>(DataKeys.IsUnlockChat, null, -1);
public static DataStorage<List<ChatItem>> ChatData = new(DataKeys.ChatData, cloudSave: false);
public static DataStorage<int> ChatNumber = BindDataStorage<int>(DataKeys.ChatNumber, null, 0);
public static DataStorage<int> ChatFreeNumber = BindDataStorage<int>(DataKeys.ChatFreeNumber, null, 0);
public static DataStorage<int> ChatRecoverDays = BindDataStorage<int>(DataKeys.ChatRecoverDays, null, -1);
public static DataStorage<int> LevelUnlockFree = new(DataKeys.LevelUnlockListFree, defaultValue: -1);
public static DataStorage<int> LevelUnlockAD = new(DataKeys.LevelUnlockListAD, defaultValue: -1);
public static DataStorage<int> LevelUnlockSpecial = new(DataKeys.LevelUnlockListSpecial, defaultValue: -1);
public static DataStorage<int> LevelUnlockVIP = new(DataKeys.LevelUnlockListVIP, defaultValue: -1);
public static DataStorage<List<Levelunlock>> LevelUnlockListNew = new(DataKeys.LevelUnlockListNew, defaultValue: new List<Levelunlock>());
#endregion
}
using System.Collections.Generic;
using SGModule.DataStorage;
using RedHotRoast;
public static partial class DataMgr
{
public static string long_name;
public static string short_name;
private static DataStorage<T> BindDataStorage<T>(string key, string messageKey = null, T @default = default)
{
return new DataStorage<T>(key, @default, (oldValue, newValue) =>
{
// 构造 ChangeValue 对象
var changeValue = new ChangeValue<T>
{
oldValue = oldValue,
newValue = newValue
};
if (messageKey.IsNullOrWhiteSpace())
{
return;
}
// 调用特定类型的分发器
PreferencesDispatcher<T>.Instance.Dispatch(messageKey, changeValue);
// 调用全局数据分发器(如果需要)
DataDispatcher.Instance.Dispatch(messageKey);
});
}
#region ValueType
public static DataStorage<bool> FirstLogin = new(DataKeys.FirstLogin, true);
public static DataStorage<long> UserID = BindDataStorage(DataKeys.UserID, @default: -1L);
public static DataStorage<long> NextOpenWheelStampTime = BindDataStorage<long>(DataKeys.nextOpenWheelStampTime);
public static DataStorage<int> ThisDayWatchSlyderVideoNum = BindDataStorage<int>(DataKeys.thisDayWatchSlyderVideoNum);
public static DataStorage<int> Coin = BindDataStorage<int>(DataKeys.coin, DataMsg.currency101);
public static DataStorage<decimal> Ticket = BindDataStorage<decimal>(DataKeys.ticket, DataMsg.currency102);
public static DataStorage<int> MaxCurrency101 = BindDataStorage<int>(DataKeys.maxCoin);
public static DataStorage<string> PlayerName = BindDataStorage<string>(DataKeys.playerName, DataMsg.playerName);
public static DataStorage<int> PlayerAvatarId = BindDataStorage<int>(DataKeys.playerAvatarId, DataMsg.playerAvatarId);
public static DataStorage<int> GameOfCount = BindDataStorage<int>(DataKeys.gameOfCount);
public static DataStorage<int> GameLevel = BindDataStorage(DataKeys.gameLevel, @default: 1);
public static DataStorage<string> ExchangeAccount = BindDataStorage<string>(DataKeys.exchangeAccount);
public static DataStorage<string> ExchangeName = BindDataStorage<string>(DataKeys.exchangeName);
public static DataStorage<bool> IsShowRewardFly101 = BindDataStorage<bool>(DataKeys.isShowRewardFly101, DataMsg.isShowRewardFly101);
public static DataStorage<bool> IsShowRewardFly102 = BindDataStorage<bool>(DataKeys.isShowRewardFly102);
public static DataStorage<decimal> PlayReawrd111 = BindDataStorage<decimal>(DataKeys.playReawrd111, DataMsg.playReawrd111);
public static DataStorage<bool> IsShowRewardFly111 = BindDataStorage<bool>(DataKeys.isShowRewardFly111, DataMsg.isShowRewardFly111);
public static DataStorage<bool> IsShowOpenReward = BindDataStorage<bool>(DataKeys.isShowOpenReward);
public static DataStorage<bool> IsLastH5Tab = BindDataStorage<bool>(DataKeys.isLastH5Tab);
public static DataStorage<long> AdChFlyShowTime = BindDataStorage<long>(DataKeys.adChFlyShowTime);
public static DataStorage<int> H5StayTime = BindDataStorage<int>(DataKeys.h5StayTime);
public static DataStorage<int> VideoWatchCount = BindDataStorage<int>(DataKeys.videoWatchCount);
public static DataStorage<decimal> MakeupTaskH5Time = BindDataStorage<decimal>(DataKeys.makeupTaskH5Time);
public static DataStorage<int> GameStartCount = BindDataStorage<int>(DataKeys.gameStartCount);
public static DataStorage<int> LoginGameTodayTimes = BindDataStorage<int>(DataKeys.loginGameTodayTimes);
public static DataStorage<string> Date = BindDataStorage<string>(DataKeys.date);
public static DataStorage<int> ChLevel = BindDataStorage<int>(DataKeys.ch_level);
public static DataStorage<string> LevelData = new(DataKeys.LevelData, cloudSave: false);
public static DataStorage<int> AdWatchCount = BindDataStorage<int>(DataKeys.AdWatchCount);
public static DataStorage<int> AvailableDiceRolls = BindDataStorage<int>(DataKeys.AvailableDiceRolls);
public static DataStorage<int> PropBackNum = BindDataStorage<int>(DataKeys.propBackNum);
public static DataStorage<int> PropRefreshNum = BindDataStorage<int>(DataKeys.propRefreshNum);
public static DataStorage<int> PropRemoveNum = BindDataStorage<int>(DataKeys.propRemoveNum);
public static DataStorage<int> ResurrectionState = BindDataStorage<int>(DataKeys.resurrectionState, null, 3);
public static DataStorage<int> GameExperience = BindDataStorage<int>(DataKeys.gameExperience);
public static DataStorage<bool> GetFirstReaward = BindDataStorage<bool>(DataKeys.getFirstReaward);
public static DataStorage<bool> NoviceGuide = BindDataStorage<bool>(DataKeys.noviceGuide);
public static DataStorage<int> GameTime = BindDataStorage<int>(DataKeys.gameTime);
public static DataStorage<int> GameDay = BindDataStorage<int>(DataKeys.gameDay);
public static DataStorage<int> IsUnlockSecret = BindDataStorage<int>(DataKeys.IsUnlockSecret, null, -1);
public static DataStorage<int> VipLevel = BindDataStorage<int>(DataKeys.VipLevel, null, -1);
public static DataStorage<long> VipExpirationTime = BindDataStorage<long>(DataKeys.VipExpirationTime);
public static DataStorage<int> IsUnlockLive = BindDataStorage<int>(DataKeys.IsUnlockLive, null, -1);
public static DataStorage<string> curResVersion = new(DataKeys.curResVersion, cloudSave: false);
public static DataStorage<bool> clearAllOrder = BindDataStorage<bool>(DataKeys.clearAllOrder);
public static DataStorage<int> ArrowResultLevel = BindDataStorage<int>(DataKeys.ArrowResultLevel,@default: 1);
public static DataStorage<int> ArrowDarkTheme = BindDataStorage<int>(DataKeys.ArrowDarkTheme,@default: 1);
public static DataStorage<int> ArrowTheme = BindDataStorage<int>(DataKeys.ArrowTheme,@default: 0);
public static DataStorage<int> ExchangeModeToggle = BindDataStorage<int>(DataKeys.ExchangeModeToggle,@default: 1);
public static DataStorage<int> ExchangeProcessMode = BindDataStorage<int>(DataKeys.ExchangeModeToggle,@default: 1);
public static DataStorage<int> CHProcessMode = BindDataStorage<int>(DataKeys.ExchangeModeToggle,@default: 1);
#endregion
#region RefType
public static DataStorage<List<long>> SignState = BindDataStorage(DataKeys.signState, @default: new List<long>());
public static DataStorage<List<MakeupTaskData>> MakeupTaskHistory = BindDataStorage(DataKeys.makeupTaskHistory, @default: new List<MakeupTaskData>());
public static DataStorage<Saveobject> SaveObject = BindDataStorage(DataKeys.SaveObject, @default: new Saveobject());
public static DataStorage<List<int>> SecretUnlockList = BindDataStorage(DataKeys.SecretUnlockList, @default: new List<int>());
public static DataStorage<Dictionary<int, int>> SecretUnlockCd = new(DataKeys.SecretUnlockCd, defaultValue: new Dictionary<int, int>(), cloudSave: false);
public static DataStorage<Dictionary<int, int>> SecretUnlockADs = new(DataKeys.SecretUnlockADs, defaultValue: new Dictionary<int, int>());
public static DataStorage<List<LiveData>> LiveDataList = new(DataKeys.LiveDataList, defaultValue: new List<LiveData>());
public static DataStorage<List<string>> ApplePayTransactionID = BindDataStorage(DataKeys.ApplePayTransactionID, @default: new List<string>());
public static DataStorage<Dictionary<int, LiveData>> LiveDataDic = new(DataKeys.LiveDataDic, defaultValue: new Dictionary<int, LiveData>());
public static DataStorage<List<int>> LevelUnlockList = new(DataKeys.LevelUnlockList, defaultValue: new List<int>());
public static DataStorage<int> IsUnlockChat = BindDataStorage<int>(DataKeys.IsUnlockChat, null, -1);
public static DataStorage<List<ChatItem>> ChatData = new(DataKeys.ChatData, cloudSave: false);
public static DataStorage<int> ChatNumber = BindDataStorage<int>(DataKeys.ChatNumber, null, 0);
public static DataStorage<int> ChatFreeNumber = BindDataStorage<int>(DataKeys.ChatFreeNumber, null, 0);
public static DataStorage<int> ChatRecoverDays = BindDataStorage<int>(DataKeys.ChatRecoverDays, null, -1);
public static DataStorage<int> LevelUnlockFree = new(DataKeys.LevelUnlockListFree, defaultValue: -1);
public static DataStorage<int> LevelUnlockAD = new(DataKeys.LevelUnlockListAD, defaultValue: -1);
public static DataStorage<int> LevelUnlockSpecial = new(DataKeys.LevelUnlockListSpecial, defaultValue: -1);
public static DataStorage<int> LevelUnlockVIP = new(DataKeys.LevelUnlockListVIP, defaultValue: -1);
public static DataStorage<List<Levelunlock>> LevelUnlockListNew = new(DataKeys.LevelUnlockListNew, defaultValue: new List<Levelunlock>());
#endregion
}
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -14,7 +14,7 @@ namespace RedHotRoast
FGUI.ZM_Setting_07.ZM_Setting_07Binder.BindAll();
FGUI.ZM_Login_05.ZM_Login_05Binder.BindAll();
FGUI.ZM_Lobby_03.ZM_Lobby_03Binder.BindAll();
FGUI.ZM_GameResult_08.ZM_GameResult_08Binder.BindAll();
FGUI.GameResult_08.GameResult_08Binder.BindAll();
FGUI.ZM_Game_04.ZM_Game_04Binder.BindAll();
FGUI.ZM_Prop_09.ZM_Prop_09Binder.BindAll();
FGUI.ZM_Reward_10.ZM_Reward_10Binder.BindAll();
File diff suppressed because it is too large Load Diff
+33 -1
View File
@@ -63,7 +63,12 @@ namespace RedHotRoast {
TextureHelper.imgUrl = CdnURL + "/" + GetConfigResVersion() + "/";
LiveVideoManager.videoBaseUrl = CdnURL + "/" + GetConfigResVersion() + "/";
if (DataMgr.ExchangeProcessMode.Value < 0)
{
DataMgr.ExchangeModeToggle.Value = GetCommonConf().ExchangeModeToggle;
DataMgr.ExchangeProcessMode.Value = GetCommonConf().ExchangeProcessMode;
DataMgr.CHProcessMode.Value = GetCommonConf().CHProcessMode;
}
// ParseGameConfig();
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.NetLoadingUI_Close);
AppDispatcher.Instance.Dispatch(AppMsg.LoginInit);
@@ -75,6 +80,8 @@ namespace RedHotRoast {
#region
private void ParseGameConfig() {
ParseNameConfig();
var gameConfigModel = new GameConfigModel();
foreach (var key in ConfigLoader.Instance.GetJsonKeys()) {
if (!key.StartsWith("GameBoard")) {
@@ -109,6 +116,31 @@ namespace RedHotRoast {
SetGameUrlConfig();
}
private void ParseNameConfig()
{
var exBrPool = GetConfig<exBrPool>();
if (exBrPool is { Count: > 0 })
{
exBrPoolModel.config_name_list = exBrPool[0].user_name.Split(",").ToList();
exBrPoolModel.config_money_list = exBrPool[0].amount.Split(",").ToList();
}
var exBrPool2 = GetConfig<exBrPool_2>();
if (exBrPool2 is { Count: > 0 })
{
exBrPoolModel2.config_name_list = exBrPool2[0].user_name.Split(",").ToList();
exBrPoolModel2.config_money_list = exBrPool2[0].amount.Split(",").ToList();
}
var levelAttempts = GetConfig<LevelAttempts>();
if (levelAttempts is { Count: > 0 })
{
LevelAttemptsModel.config_name_list = levelAttempts[0].user_name.Split(",").ToList();
LevelAttemptsModel.config_money_list = levelAttempts[0].amount.Split(",").ToList();
}
}
private static List<GameUrls> data_new;
+253 -251
View File
@@ -1,252 +1,254 @@
using SGModule.NetKit;
public static class ADEventTrack
{
// public static readonly string Event = TrackEvent.Register("AD_Event");
// public static readonly string MaxPayEvent = TrackEvent.Register("Max_Pay_Event");
public static readonly string Event = TrackEvent.Register("AD_Event");
public static readonly string MaxPayEvent = TrackEvent.Register("Max_Pay_Event");
public static readonly string IOS_Pay_Event = TrackEvent.Register("IOS_Pay_Event");
public static readonly string Subscription = TrackEvent.Register("Subscription");
public static readonly string Special = TrackEvent.Register("Special");
public static readonly string VipLevel = TrackEvent.Register("VipLevel");
public static readonly string Live = TrackEvent.Register("Live");
public static readonly string SecretAlbums = TrackEvent.Register("SecretAlbums");
public static readonly string Chat = TrackEvent.Register("Chat");
public static readonly string VipLive = TrackEvent.Register("vip_live");
public static readonly string VipSecretAlbums = TrackEvent.Register("vip_secret_albums");
public static readonly string Coinsbuy = TrackEvent.Register("coins_buy");
public static class Property
{
#region +1
public static readonly string buy_one_show = TrackProperty.Register("buy_one_show");
public static readonly string buy_one_click = TrackProperty.Register("buy_one_click");
public static readonly string buy_one_open = TrackProperty.Register("buy_one_open");
public static readonly string buy_one_success = TrackProperty.Register("buy_one_success");
#endregion
#region
public static readonly string first_pack_show = TrackProperty.Register("first_pack_show");
public static readonly string lucky_gift_click = TrackProperty.Register("lucky_gift_click");
public static readonly string lucky_gift_receive = TrackProperty.Register("lucky_gift_receive");
#endregion
#region 广
public static readonly string gift_show = TrackProperty.Register("gift_show");
public static readonly string remove_ad_click = TrackProperty.Register("remove_ad_click");
public static readonly string remove_ad_receive = TrackProperty.Register("remove_ad_receive");
#endregion
#region
public static readonly string shop_show = TrackProperty.Register("shop_show");
public static readonly string gold_click_ = TrackProperty.Register("gold_click_", true);
public static readonly string gold_click_ad = TrackProperty.Register("gold_click_ad", true);
public static readonly string shop_receive_ = TrackProperty.Register("shop_receive_", true);
#endregion
#region AF相关
public static readonly string afterRewardAdShow = TrackProperty.Register("afterRewardAdShow");
public static readonly string afterRewardAdEnd = TrackProperty.Register("afterRewardAdEnd");
#endregion
#region
public static readonly string master_pass_show = TrackProperty.Register("master_pass_show");
public static readonly string master_pass_click = TrackProperty.Register("master_pass_click");
public static readonly string master_pass_receive = TrackProperty.Register("master_pass_receive");
#endregion
#region
public static readonly string three_days_gift_show = TrackProperty.Register("three_days_gift_show");
public static readonly string three_days_gift_buy_success =
TrackProperty.Register("three_days_gift_buy_success");
public static readonly string three_days_gift_click = TrackProperty.Register("three_days_gift_click");
#endregion
#region
public static readonly string fail_open = TrackProperty.Register("fail_open");
public static readonly string fail_show = TrackProperty.Register("fail_show");
public static readonly string fail_click = TrackProperty.Register("fail_click");
public static readonly string fail_buy_success = TrackProperty.Register("fail_buy_success");
#endregion
#region adLoad
public static readonly string ad_load_code = TrackProperty.Register("ad_load_code_");
public static readonly string ad_show_code = TrackProperty.Register("ad_show_code_");
#endregion
#region
public static readonly string secret_albums_show = TrackProperty.Register("secret_albums_show", true);
public static readonly string secret_albums_click_ = TrackProperty.Register("secret_albums_click", true);
public static readonly string secret_albums_success_ = TrackProperty.Register("secret_albums_success_", true);
public static readonly string vip_secret_albums_unclock_ = TrackProperty.Register("vip_secret_albums_unclock_", true);
#endregion
#region VIP
// public static readonly string vip_show = TrackProperty.Register("vip_show");
// public static readonly string vip_click_ = TrackProperty.Register("vip_click_", true);
// public static readonly string vip_receive_ = TrackProperty.Register("vip_receive_", true);
public static readonly string vip_show_page = TrackProperty.Register("vip_show");
public static readonly string vip_click_ = TrackProperty.Register("vip_click_", true);
public static readonly string vip_success_ = TrackProperty.Register("vip_success_", true);
public static readonly string vip_show_levelpass = TrackProperty.Register("vip_show_levelpass_", true);
public static readonly string vip_show_sell = TrackProperty.Register("vip_show_sell");
#endregion
public static readonly string speciallevel = TrackProperty.Register("special level");
public static readonly string speciallevelvideo = TrackProperty.Register("special level_video");
public static readonly string speciallevelcoin = TrackProperty.Register("special level_coin");
public static readonly string viplevel = TrackProperty.Register("vip level");
public static readonly string viplevelsub = TrackProperty.Register("vip level_sub");
public static readonly string viplevelcoin = TrackProperty.Register("vip level_coin");
public static readonly string live_unlock = TrackProperty.Register("live_unlock");
public static readonly string live_sub = TrackProperty.Register("live_sub");
public static readonly string live_coin = TrackProperty.Register("live_coin");
public static readonly string live_play = TrackProperty.Register("live_play");
public static readonly string secret_unlock = TrackProperty.Register("secret albums_unlock");
public static readonly string secret_sub = TrackProperty.Register("secret albums_sub");
public static readonly string secret_coin = TrackProperty.Register("secret albums_coin");
public static readonly string secret_play = TrackProperty.Register("secret albums_play");
public static readonly string live_unclock = TrackProperty.Register("live_unclock");
public static readonly string vip_live_unclock_ = TrackProperty.Register("vip_live_unclock_", true);
public static readonly string secret_albums_unclock = TrackProperty.Register("secret_albums_unclock");
public static readonly string chat_unclock = TrackProperty.Register("chat_unclock");
public static readonly string chat_coin = TrackProperty.Register("chat_coin");
public static readonly string chat_sub = TrackProperty.Register("chat_sub");
public static readonly string chat_unclock_open = TrackProperty.Register("chat_unclock_open");
public static readonly string vip_secret_albums_unclock = TrackProperty.Register("vip_secret_albums_unclock");
public static readonly string vip_live_unclock = TrackProperty.Register("vip_live_unclock");
public static readonly string download = TrackProperty.Register("download");
public static readonly string unlock_svip = TrackProperty.Register("unlock_svip");
public static readonly string unlock_vip = TrackProperty.Register("unlock_vip");
public static readonly string unlock_live = TrackProperty.Register("unlock_live");
public static readonly string unlock_live_resources = TrackProperty.Register("unlock_live_resources");
public static readonly string unlock_secretAlbums = TrackProperty.Register("unlock_secret albums");
public static readonly string unlock_secretAlbums_resources = TrackProperty.Register("unlock_secret albums_resources");
}
}
public static class HallBehaviorTrack
{
public static readonly string Event = TrackEvent.Register("Hall_behavior");
public static class Property
{
#region H5相关
public static readonly string fly_ct_number = TrackProperty.Register("fly_ct_number");
public static readonly string annular_ct_number = TrackProperty.Register("annular_ct_number");
public static readonly string annular_finish_number = TrackProperty.Register("annular_finish_number");
public static readonly string annular_get_number = TrackProperty.Register("annular_get_number");
public static readonly string collect_fly_number = TrackProperty.Register("collect_fly_number");
#endregion
}
}
public static class ADTrack
{
public static readonly string Event = TrackEvent.Register("AD");
public static class Property
{
#region
public static readonly string ad_load_code_ = TrackProperty.Register("ad_load_code_");
public static readonly string ad_show_code_ = TrackProperty.Register("ad_show_code_");
#endregion
}
}
public static class WwBehaviorTrack
{
public static readonly string Event = TrackEvent.Register("ww_behavior");
public static class Property
{
#region Ww
public static readonly string ww_message = TrackProperty.Register("ww_message");
public static readonly string ww_ch = TrackProperty.Register("ww_ch", true);
#endregion
}
}
public static class VideoBehaviorTrack
{
public static readonly string Event = TrackEvent.Register("video_behavior");
public static class Property
{
#region
public static readonly string watch_ad_people = TrackProperty.Register("watch_ad_people");
public static readonly string Rewarded_videos_trigger_number =
TrackProperty.Register("Rewarded_videos_trigger_number");
#endregion
}
}
public static class ThreeDaysGiftEventTrack
{
public static readonly string Event = TrackEvent.Register("Three_days_gift_event");
public static class Property
{
#region
public static readonly string three_day1_success = TrackProperty.Register("three_day1_success");
public static readonly string three_day2_success = TrackProperty.Register("three_day2_success");
public static readonly string three_day3_success = TrackProperty.Register("three_day3_success");
#endregion
}
}
public static class AfPurchaseTrack
{
public static readonly string Event = TrackEvent.Register("af_purchase");
public static class Property
{
#region
public static readonly string af_revenue = TrackProperty.Register("af_revenue");
#endregion
}
using SGModule.NetKit;
public static class ADEventTrack
{
// public static readonly string Event = TrackEvent.Register("AD_Event");
// public static readonly string MaxPayEvent = TrackEvent.Register("Max_Pay_Event");
public static readonly string Event = TrackEvent.Register("AD_Event");
public static readonly string MaxPayEvent = TrackEvent.Register("Max_Pay_Event");
public static readonly string IOS_Pay_Event = TrackEvent.Register("IOS_Pay_Event");
public static readonly string Subscription = TrackEvent.Register("Subscription");
public static readonly string Special = TrackEvent.Register("Special");
public static readonly string VipLevel = TrackEvent.Register("VipLevel");
public static readonly string Live = TrackEvent.Register("Live");
public static readonly string SecretAlbums = TrackEvent.Register("SecretAlbums");
public static readonly string Chat = TrackEvent.Register("Chat");
public static readonly string VipLive = TrackEvent.Register("vip_live");
public static readonly string VipSecretAlbums = TrackEvent.Register("vip_secret_albums");
public static readonly string Coinsbuy = TrackEvent.Register("coins_buy");
public static class Property
{
#region +1
public static readonly string buy_one_show = TrackProperty.Register("buy_one_show");
public static readonly string buy_one_click = TrackProperty.Register("buy_one_click");
public static readonly string buy_one_open = TrackProperty.Register("buy_one_open");
public static readonly string buy_one_success = TrackProperty.Register("buy_one_success");
#endregion
#region
public static readonly string first_pack_show = TrackProperty.Register("first_pack_show");
public static readonly string lucky_gift_click = TrackProperty.Register("lucky_gift_click");
public static readonly string lucky_gift_receive = TrackProperty.Register("lucky_gift_receive");
#endregion
#region 广
public static readonly string gift_show = TrackProperty.Register("gift_show");
public static readonly string remove_ad_click = TrackProperty.Register("remove_ad_click");
public static readonly string remove_ad_receive = TrackProperty.Register("remove_ad_receive");
#endregion
#region
public static readonly string shop_show = TrackProperty.Register("shop_show");
public static readonly string gold_click_ = TrackProperty.Register("gold_click_", true);
public static readonly string gold_click_ad = TrackProperty.Register("gold_click_ad", true);
public static readonly string shop_receive_ = TrackProperty.Register("shop_receive_", true);
#endregion
#region AF相关
public static readonly string afterRewardAdShow = TrackProperty.Register("afterRewardAdShow");
public static readonly string afterRewardAdEnd = TrackProperty.Register("afterRewardAdEnd");
#endregion
#region
public static readonly string master_pass_show = TrackProperty.Register("master_pass_show");
public static readonly string master_pass_click = TrackProperty.Register("master_pass_click");
public static readonly string master_pass_receive = TrackProperty.Register("master_pass_receive");
#endregion
#region
public static readonly string three_days_gift_show = TrackProperty.Register("three_days_gift_show");
public static readonly string three_days_gift_buy_success =
TrackProperty.Register("three_days_gift_buy_success");
public static readonly string three_days_gift_click = TrackProperty.Register("three_days_gift_click");
#endregion
#region
public static readonly string fail_open = TrackProperty.Register("fail_open");
public static readonly string fail_show = TrackProperty.Register("fail_show");
public static readonly string fail_click = TrackProperty.Register("fail_click");
public static readonly string fail_buy_success = TrackProperty.Register("fail_buy_success");
#endregion
#region adLoad
public static readonly string ad_load_code = TrackProperty.Register("ad_load_code_");
public static readonly string ad_show_code = TrackProperty.Register("ad_show_code_");
#endregion
#region
public static readonly string secret_albums_show = TrackProperty.Register("secret_albums_show", true);
public static readonly string secret_albums_click_ = TrackProperty.Register("secret_albums_click", true);
public static readonly string secret_albums_success_ = TrackProperty.Register("secret_albums_success_", true);
public static readonly string vip_secret_albums_unclock_ = TrackProperty.Register("vip_secret_albums_unclock_", true);
#endregion
#region VIP
// public static readonly string vip_show = TrackProperty.Register("vip_show");
// public static readonly string vip_click_ = TrackProperty.Register("vip_click_", true);
// public static readonly string vip_receive_ = TrackProperty.Register("vip_receive_", true);
public static readonly string vip_show_page = TrackProperty.Register("vip_show");
public static readonly string vip_click_ = TrackProperty.Register("vip_click_", true);
public static readonly string vip_success_ = TrackProperty.Register("vip_success_", true);
public static readonly string vip_show_levelpass = TrackProperty.Register("vip_show_levelpass_", true);
public static readonly string vip_show_sell = TrackProperty.Register("vip_show_sell");
#endregion
public static readonly string speciallevel = TrackProperty.Register("special level");
public static readonly string speciallevelvideo = TrackProperty.Register("special level_video");
public static readonly string speciallevelcoin = TrackProperty.Register("special level_coin");
public static readonly string viplevel = TrackProperty.Register("vip level");
public static readonly string viplevelsub = TrackProperty.Register("vip level_sub");
public static readonly string viplevelcoin = TrackProperty.Register("vip level_coin");
public static readonly string live_unlock = TrackProperty.Register("live_unlock");
public static readonly string live_sub = TrackProperty.Register("live_sub");
public static readonly string live_coin = TrackProperty.Register("live_coin");
public static readonly string live_play = TrackProperty.Register("live_play");
public static readonly string secret_unlock = TrackProperty.Register("secret albums_unlock");
public static readonly string secret_sub = TrackProperty.Register("secret albums_sub");
public static readonly string secret_coin = TrackProperty.Register("secret albums_coin");
public static readonly string secret_play = TrackProperty.Register("secret albums_play");
public static readonly string live_unclock = TrackProperty.Register("live_unclock");
public static readonly string vip_live_unclock_ = TrackProperty.Register("vip_live_unclock_", true);
public static readonly string secret_albums_unclock = TrackProperty.Register("secret_albums_unclock");
public static readonly string chat_unclock = TrackProperty.Register("chat_unclock");
public static readonly string chat_coin = TrackProperty.Register("chat_coin");
public static readonly string chat_sub = TrackProperty.Register("chat_sub");
public static readonly string chat_unclock_open = TrackProperty.Register("chat_unclock_open");
public static readonly string vip_secret_albums_unclock = TrackProperty.Register("vip_secret_albums_unclock");
public static readonly string vip_live_unclock = TrackProperty.Register("vip_live_unclock");
public static readonly string download = TrackProperty.Register("download");
public static readonly string unlock_svip = TrackProperty.Register("unlock_svip");
public static readonly string unlock_vip = TrackProperty.Register("unlock_vip");
public static readonly string unlock_live = TrackProperty.Register("unlock_live");
public static readonly string unlock_live_resources = TrackProperty.Register("unlock_live_resources");
public static readonly string unlock_secretAlbums = TrackProperty.Register("unlock_secret albums");
public static readonly string unlock_secretAlbums_resources = TrackProperty.Register("unlock_secret albums_resources");
public static readonly string WatchAdNumber = TrackProperty.Register("WatchAdNumber");
public static readonly string FinishAdNumber = TrackProperty.Register("FinishAdNumber");
}
}
public static class HallBehaviorTrack
{
public static readonly string Event = TrackEvent.Register("Hall_behavior");
public static class Property
{
#region H5相关
public static readonly string fly_ct_number = TrackProperty.Register("fly_ct_number");
public static readonly string annular_ct_number = TrackProperty.Register("annular_ct_number");
public static readonly string annular_finish_number = TrackProperty.Register("annular_finish_number");
public static readonly string annular_get_number = TrackProperty.Register("annular_get_number");
public static readonly string collect_fly_number = TrackProperty.Register("collect_fly_number");
#endregion
}
}
public static class ADTrack
{
public static readonly string Event = TrackEvent.Register("AD");
public static class Property
{
#region
public static readonly string ad_load_code_ = TrackProperty.Register("ad_load_code_");
public static readonly string ad_show_code_ = TrackProperty.Register("ad_show_code_");
#endregion
}
}
public static class WwBehaviorTrack
{
public static readonly string Event = TrackEvent.Register("ww_behavior");
public static class Property
{
#region Ww
public static readonly string ww_message = TrackProperty.Register("ww_message");
public static readonly string ww_ch = TrackProperty.Register("ww_ch", true);
#endregion
}
}
public static class VideoBehaviorTrack
{
public static readonly string Event = TrackEvent.Register("video_behavior");
public static class Property
{
#region
public static readonly string watch_ad_people = TrackProperty.Register("watch_ad_people");
public static readonly string Rewarded_videos_trigger_number =
TrackProperty.Register("Rewarded_videos_trigger_number");
#endregion
}
}
public static class ThreeDaysGiftEventTrack
{
public static readonly string Event = TrackEvent.Register("Three_days_gift_event");
public static class Property
{
#region
public static readonly string three_day1_success = TrackProperty.Register("three_day1_success");
public static readonly string three_day2_success = TrackProperty.Register("three_day2_success");
public static readonly string three_day3_success = TrackProperty.Register("three_day3_success");
#endregion
}
}
public static class AfPurchaseTrack
{
public static readonly string Event = TrackEvent.Register("af_purchase");
public static class Property
{
#region
public static readonly string af_revenue = TrackProperty.Register("af_revenue");
#endregion
}
}