提交项目
This commit is contained in:
@@ -0,0 +1,78 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ZooMatch
|
||||
{
|
||||
public class PreferencesDataReadyCtrl : BaseCtrl
|
||||
{
|
||||
LoginModel userModel;
|
||||
private List<uint> msgList = new List<uint>();
|
||||
|
||||
#region 生命周期
|
||||
|
||||
protected override void OnInit()
|
||||
{
|
||||
userModel = ModuleManager.Instance.GetModel(ModelConst.LoginModel) as LoginModel;
|
||||
}
|
||||
|
||||
protected override void OnDispose()
|
||||
{
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 消息
|
||||
|
||||
protected override void AddListener()
|
||||
{
|
||||
ctrlDispatcher.AddListener(CtrlMsg.Preferences_InitComplete, PreferenceDataReady);
|
||||
ctrlDispatcher.AddListener(CtrlMsg.Game_StartBefore, SendCtrlMsg);
|
||||
}
|
||||
|
||||
protected override void RemoveListener()
|
||||
{
|
||||
ctrlDispatcher.RemoveListener(CtrlMsg.Preferences_InitComplete, PreferenceDataReady);
|
||||
ctrlDispatcher.RemoveListener(CtrlMsg.Game_StartBefore, SendCtrlMsg);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
public void PreferenceDataReady(object objs = null)
|
||||
{
|
||||
InspectionNewDay();
|
||||
|
||||
|
||||
PreferencesMgr.Instance.GameStartCount++;
|
||||
}
|
||||
|
||||
|
||||
public void InspectionNewDay()
|
||||
{
|
||||
long login_time = userModel.login_time;
|
||||
DateTime data = DateTimeManager.Instance.GetDateTime(login_time);
|
||||
string dateStr = DateTimeManager.Instance.DateTimeToYYYYMMDD(data);
|
||||
if (!PreferencesMgr.Instance.Date.Equals(dateStr))
|
||||
{
|
||||
PreferencesMgr.Instance.Date = dateStr;
|
||||
msgList.Add(CtrlMsg.NewDays);
|
||||
PreferencesMgr.Instance.LoginGameTodayTimes = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
PreferencesMgr.Instance.LoginGameTodayTimes++;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public void SendCtrlMsg(object args = null)
|
||||
{
|
||||
for (int i = 0; i < msgList.Count; i++)
|
||||
{
|
||||
ctrlDispatcher.Dispatch(msgList[i]);
|
||||
}
|
||||
|
||||
msgList.Clear();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b456e1e40be344dd99c817ba250c2a0e
|
||||
timeCreated: 1692007381
|
||||
@@ -0,0 +1,221 @@
|
||||
namespace ZooMatch
|
||||
{
|
||||
public static class PreferencesField
|
||||
{
|
||||
public const string currency101 = "currency101";
|
||||
public const string currency102 = "currency102";
|
||||
|
||||
|
||||
public const string maxCurrency101 = "maxCurrency101";
|
||||
|
||||
|
||||
public const string nextNewDayTime = "nextNewDayTime";
|
||||
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 completeGuideList = "completeGuideList";
|
||||
|
||||
public const string isResetGuide = "isResetGuide";
|
||||
|
||||
|
||||
public const string gameOfCount = "gameOfCount";
|
||||
|
||||
|
||||
public const string winOfGame = "winOfGame";
|
||||
|
||||
|
||||
public const string onceStatistcList = "onceStatistcList";
|
||||
|
||||
|
||||
public const string watchVideoBeginSum = "watchVideoBeginSum";
|
||||
|
||||
|
||||
public const string isGod = "isGod";
|
||||
|
||||
|
||||
public const string facebookId = "facebookId";
|
||||
|
||||
|
||||
public const string facebookName = "facebookName";
|
||||
|
||||
|
||||
public const string facebookAvatarUrl = "facebookAvatarUrl";
|
||||
|
||||
|
||||
public const string updataFBLogin_Data = "updataFBLogin_Data";
|
||||
|
||||
|
||||
public const string isFaceBookLogin = "isFaceBookLogin";
|
||||
|
||||
|
||||
public const string isGuideFinish = "isGuideFinish";
|
||||
|
||||
|
||||
public const string currentQuestionIndex = "currentQuestionIndex";
|
||||
|
||||
public const string gameLevel = "gameLevel";
|
||||
|
||||
|
||||
public const string exchangeBindGuide = "exchangeBindGuide";
|
||||
|
||||
|
||||
public const string exchangeAccount = "exchangeAccount";
|
||||
|
||||
|
||||
public const string exchangeName = "exchangeName";
|
||||
|
||||
|
||||
public const string haveRedeemedSkin = "haveRedeemedSkin";
|
||||
|
||||
|
||||
public const string inUseSkin = "inUseSkin";
|
||||
|
||||
|
||||
public const string paypalAccount = "paypalAccount";
|
||||
|
||||
|
||||
public const string isSuccessRedeem = "isSuccessRedeem";
|
||||
|
||||
public const string inviteDataList = "inviteDataList";
|
||||
|
||||
|
||||
public const string inviteRecordList = "inviteRecordList";
|
||||
|
||||
|
||||
public const string inviteMakeUpHistoryList = "inviteMakeUpHistoryList";
|
||||
|
||||
public const string isEditInviteCode = "isEditInviteCode";
|
||||
|
||||
|
||||
public const string webViewMakeUpOnlineTime = "webViewMakeUpOnlineTime";
|
||||
|
||||
public const string webViewADTaskOnlineTime = "webViewADTaskOnlineTime";
|
||||
|
||||
|
||||
public const string isShowRewardFly101 = "isShowRewardFly101";
|
||||
public const string isShowRewardFly102 = "isShowRewardFly102";
|
||||
|
||||
|
||||
public const string playReawrd111 = "playReawrd111";
|
||||
|
||||
|
||||
public const string isShowRewardFly111 = "isShowRewardFly111";
|
||||
|
||||
|
||||
public const string openRewardCount = "openRewardCount";
|
||||
|
||||
|
||||
public const string interRewardShowLevel = "interRewardShowLevel";
|
||||
|
||||
|
||||
public const string isShowOpenReward = "isShowOpenReward";
|
||||
|
||||
public const string isRealProcessing = "isRealProcessing";
|
||||
|
||||
|
||||
public const string realWatchVideo = "realWatchVideo";
|
||||
|
||||
|
||||
public const string isClickH5Icon = "isClickH5Icon";
|
||||
|
||||
|
||||
public const string lastClickMainIconTime = "lastClickMainIconTime";
|
||||
|
||||
public const string interH5Url1Count = "interH5Url1Count";
|
||||
public const string interH5Url2Count = "interH5Url2Count";
|
||||
public const string makeupSatisfyGears = "makeupSatisfyGears";
|
||||
public const string makeupRealReportGear = "makeupRealReportGear";
|
||||
|
||||
|
||||
public const string isLastH5Tab = "isLastH5Tab";
|
||||
|
||||
|
||||
public const string adCashFlyShowTime = "adCashFlyShowTime";
|
||||
|
||||
|
||||
public const string adTaskDataList = "adTaskDataList";
|
||||
|
||||
|
||||
public const string adTaskCount = "adTaskCount";
|
||||
|
||||
|
||||
public const string correctAnswerCount = "correctAnswerCount";
|
||||
|
||||
|
||||
public const string achievementAnswerList = "achievementAnswerList";
|
||||
|
||||
|
||||
public const string h5StayTime = "h5StayTime";
|
||||
|
||||
|
||||
public const string achievementH5List = "achievementH5List";
|
||||
|
||||
|
||||
public const string videoWatchCount = "videoWatchCount";
|
||||
|
||||
|
||||
public const string achievementVideoList = "achievementVideoList";
|
||||
|
||||
|
||||
public const string signInCount = "signInCount";
|
||||
|
||||
|
||||
public const string achievementSignInList = "achievementSignInList";
|
||||
|
||||
|
||||
public const string inviteCount = "inviteCount";
|
||||
|
||||
|
||||
public const string achievementInviteList = "achievementInviteList";
|
||||
|
||||
|
||||
public const string naiveStepFinish = "naiveStepFinish";
|
||||
|
||||
|
||||
public const string makeupTaskHistory = "makeupTaskHistory";
|
||||
|
||||
|
||||
public const string makeupTaskH5Time = "makeupTaskH5Time";
|
||||
|
||||
|
||||
public const string makeupConditionMark = "makeupConditionMark";
|
||||
|
||||
public const string statisticDictionary = "statisticDictionary";
|
||||
|
||||
|
||||
public const string gameStartCount = "gameStartCount";
|
||||
|
||||
|
||||
public const string loginGameTodayTimes = "loginGameTodayTimes";
|
||||
|
||||
|
||||
public const string videoEffective_count = "videoEffective_count";
|
||||
|
||||
|
||||
public const string isLogEffective = "isLogEffective";
|
||||
|
||||
|
||||
public const string data_ver = "data_ver";
|
||||
|
||||
|
||||
public const string haveBeenGameStart = "haveBeenGameStart";
|
||||
|
||||
|
||||
public const string date = "date";
|
||||
|
||||
|
||||
public const string lastLoginDays = "lastLoginDays";
|
||||
|
||||
public const string isGetPettyReward = "isGetPettyReward";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: bc5eccf1420ec3a489eb815e618824c8
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 935e480d49b8ffa4381022530d2f6acc
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,212 @@
|
||||
namespace ZooMatch
|
||||
{
|
||||
public static class PreferencesMsg
|
||||
{
|
||||
public const string currency101 = "Preferences_currency101";
|
||||
public const string currency102 = "Preferences_currency102";
|
||||
public const string maxCurrency101 = "Preferences_maxCurrency101";
|
||||
|
||||
public const string nextNewDayTime = "Preferences_nextNewDayTime";
|
||||
public const string nextOpenWheelStampTime = "Preferences_nextOpenWheelStampTime";
|
||||
public const string thisDayWatchSlyderVideoNum = "Preferences_thisDayWatchSlyderVideoNum";
|
||||
public const string playerName = "Preferences_playerName";
|
||||
public const string playerAvatarId = "Preferences_playerAvatarId";
|
||||
public const string signState = "Preferences_signState";
|
||||
|
||||
|
||||
public const string completeGuideList = "Preferences_completeGuideList";
|
||||
|
||||
public const string isResetGuide = "Preferences_isResetGuide";
|
||||
|
||||
|
||||
public const string gameOfCount = "Preferences_gameOfCount";
|
||||
|
||||
|
||||
public const string winOfGame = "Preferences_winOfGame";
|
||||
|
||||
|
||||
public const string onceStatistcList = "Preferences_onceStatistcList";
|
||||
|
||||
|
||||
public const string watchVideoBeginSum = "Preferences_watchVideoBeginSum";
|
||||
|
||||
|
||||
public const string isGod = "Preferences_isGod";
|
||||
|
||||
|
||||
public const string facebookId = "Preferences_facebookId";
|
||||
|
||||
|
||||
public const string facebookName = "Preferences_facebookName";
|
||||
|
||||
|
||||
public const string facebookAvatarUrl = "Preferences_facebookAvatarUrl";
|
||||
|
||||
|
||||
public const string updataFBLogin_Data = "Preferences_updataFBLogin_Data";
|
||||
|
||||
|
||||
public const string isFaceBookLogin = "Preferences_isFaceBookLogin";
|
||||
|
||||
|
||||
public const string isGuideFinish = "Preferences_isGuideFinish";
|
||||
|
||||
|
||||
public const string currentQuestionIndex = "Preferences_currentQuestionIndex";
|
||||
|
||||
public const string gameLevel = "Preferences_gameLevel";
|
||||
|
||||
|
||||
public const string exchangeBindGuide = "Preferences_exchangeBindGuide";
|
||||
|
||||
|
||||
public const string exchangeAccount = "Preferences_exchangeAccount";
|
||||
|
||||
|
||||
public const string exchangeName = "Preferences_exchangeName";
|
||||
|
||||
|
||||
public const string haveRedeemedSkin = "Preferences_haveRedeemedSkin";
|
||||
|
||||
|
||||
public const string inUseSkin = "Preferences_inUseSkin";
|
||||
|
||||
|
||||
public const string paypalAccount = "Preferences_paypalAccount";
|
||||
|
||||
|
||||
public const string isSuccessRedeem = "Preferences_isSuccessRedeem";
|
||||
|
||||
public const string inviteDataList = "Preferences_inviteDataList";
|
||||
|
||||
|
||||
public const string inviteRecordList = "Preferences_inviteRecordList";
|
||||
|
||||
|
||||
public const string inviteMakeUpHistoryList = "Preferences_inviteMakeUpHistoryList";
|
||||
|
||||
public const string isEditInviteCode = "Preferences_isEditInviteCode";
|
||||
|
||||
|
||||
public const string webViewMakeUpOnlineTime = "Preferences_webViewMakeUpOnlineTime";
|
||||
|
||||
public const string webViewADTaskOnlineTime = "Preferences_webViewADTaskOnlineTime";
|
||||
|
||||
|
||||
public const string isShowRewardFly101 = "Preferences_isShowRewardFly101";
|
||||
public const string isShowRewardFly102 = "Preferences_isShowRewardFly102";
|
||||
|
||||
|
||||
public const string playReawrd111 = "Preferences_playReawrd111";
|
||||
|
||||
|
||||
public const string isShowRewardFly111 = "Preferences_isShowRewardFly111";
|
||||
|
||||
|
||||
public const string openRewardCount = "Preferences_openRewardCount";
|
||||
|
||||
|
||||
public const string interRewardShowLevel = "Preferences_interRewardShowLevel";
|
||||
|
||||
|
||||
public const string isShowOpenReward = "Preferences_isShowOpenReward";
|
||||
|
||||
public const string isRealProcessing = "Preferences_isRealProcessing";
|
||||
|
||||
|
||||
public const string realWatchVideo = "Preferences_realWatchVideo";
|
||||
|
||||
|
||||
public const string isClickH5Icon = "Preferences_isClickH5Icon";
|
||||
|
||||
|
||||
public const string lastClickMainIconTime = "Preferences_lastClickMainIconTime";
|
||||
|
||||
public const string interH5Url1Count = "Preferences_interH5Url1Count";
|
||||
public const string interH5Url2Count = "Preferences_interH5Url2Count";
|
||||
public const string makeupSatisfyGears = "Preferences_makeupSatisfyGears";
|
||||
public const string makeupRealReportGear = "Preferences_makeupRealReportGear";
|
||||
|
||||
|
||||
public const string isLastH5Tab = "Preferences_isLastH5Tab";
|
||||
|
||||
|
||||
public const string adCashFlyShowTime = "Preferences_adCashFlyShowTime";
|
||||
|
||||
|
||||
public const string adTaskDataList = "Preferences_adTaskDataList";
|
||||
|
||||
|
||||
public const string adTaskCount = "Preferences_adTaskCount";
|
||||
|
||||
|
||||
public const string correctAnswerCount = "Preferences_correctAnswerCount";
|
||||
|
||||
|
||||
public const string achievementAnswerList = "Preferences_achievementAnswerList";
|
||||
|
||||
|
||||
public const string h5StayTime = "Preferences_h5StayTime";
|
||||
|
||||
|
||||
public const string achievementH5List = "Preferences_achievementH5List";
|
||||
|
||||
|
||||
public const string videoWatchCount = "Preferences_videoWatchCount";
|
||||
|
||||
|
||||
public const string achievementVideoList = "Preferences_achievementVideoList";
|
||||
|
||||
|
||||
public const string signInCount = "Preferences_signInCount";
|
||||
|
||||
|
||||
public const string achievementSignInList = "Preferences_achievementSignInList";
|
||||
|
||||
|
||||
public const string inviteCount = "Preferences_inviteCount";
|
||||
|
||||
|
||||
public const string achievementInviteList = "Preferences_achievementInviteList";
|
||||
|
||||
|
||||
public const string naiveStepFinish = "Preferences_naiveStepFinish";
|
||||
|
||||
|
||||
public const string makeupTaskHistory = "Preferences_makeupTaskHistory";
|
||||
|
||||
|
||||
public const string makeupTaskH5Time = "Preferences_makeupTaskH5Time";
|
||||
|
||||
|
||||
public const string makeupConditionMark = "Preferences_makeupConditionMark";
|
||||
|
||||
public const string statisticDictionary = "Preferences_statisticDictionary";
|
||||
|
||||
|
||||
public const string gameStartCount = "Preferences_gameStartCount";
|
||||
|
||||
|
||||
public const string loginGameTodayTimes = "Preferences_loginGameTodayTimes";
|
||||
|
||||
|
||||
public const string videoEffective_count = "Preferences_videoEffective_count";
|
||||
|
||||
|
||||
public const string isLogEffective = "Preferences_isLogEffective";
|
||||
|
||||
|
||||
public const string data_ver = "Preferences_data_ver";
|
||||
|
||||
|
||||
public const string haveBeenGameStart = "Preferences_haveBeenGameStart";
|
||||
|
||||
|
||||
public const string date = "Preferences_date";
|
||||
|
||||
|
||||
public const string lastLoginDays = "Preferences_lastLoginDays";
|
||||
|
||||
public const string isGetPettyReward = "Preferences_IsGetPettyReward";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d352f19554a6f98469bd971e95579515
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user