From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../Scripts/XMainClient/XFriendsStaticData.cs | 75 ++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/XFriendsStaticData.cs (limited to 'Client/Assets/Scripts/XMainClient/XFriendsStaticData.cs') diff --git a/Client/Assets/Scripts/XMainClient/XFriendsStaticData.cs b/Client/Assets/Scripts/XMainClient/XFriendsStaticData.cs new file mode 100644 index 00000000..e43ff563 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFriendsStaticData.cs @@ -0,0 +1,75 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + public class XFriendsStaticData : XStaticDataBase + { + public uint SendGiftMinDegree; + + public uint SendGiftMaxTimes; + + public uint ReceiveGifMaxTimes; + + public uint MaxFriendlyEvaluation; + + public int RefreshAddListCD; + + public string CommonCountTotalFmt; + + public string CommonCountTotalEnoughFmt; + + public string CommonCountTotalNotEnoughFmt; + + public string CannotSendGiftToFriendHintText; + + public string GiftAlreadySentToFriendHintText; + + public string GiftSuccessfullySentHintText; + + public string GiftSuccessfullyReceiveHintText; + + public string Second; + + public string Minute; + + public string Hour; + + public string Day; + + public string Month; + + public string Ago; + + protected override void OnInit() + { + this.RefreshAddListCD = XSingleton.singleton.GetInt("FriendSystemRefreshAddListCD"); + this.SendGiftMinDegree = (uint)XSingleton.singleton.GetInt("FriendSystemSendGiftMinDegree"); + this.SendGiftMaxTimes = (uint)XSingleton.singleton.GetInt("FriendSystemSendGifMaxTimes"); + this.ReceiveGifMaxTimes = (uint)XSingleton.singleton.GetInt("FriendSystemAcceptGifMaxTimes"); + this.MaxFriendlyEvaluation = (uint)XSingleton.singleton.GetInt("FriendSystemMaxFriendlyEvaluation"); + this.CannotSendGiftToFriendHintText = XStringDefineProxy.GetString("FRIEND_CANNOT_SEND_GIFT_FMT", new object[] + { + this.SendGiftMinDegree + }); + this.CommonCountTotalFmt = XStringDefineProxy.GetString("COMMON_COUNT_TOTAL_FMT"); + this.CommonCountTotalNotEnoughFmt = XStringDefineProxy.GetString("COMMON_COUNT_TOTAL_NOTENOUGH_FMT"); + this.CommonCountTotalEnoughFmt = XStringDefineProxy.GetString("COMMON_COUNT_TOTAL_ENOUGH_FMT"); + this.GiftAlreadySentToFriendHintText = XStringDefineProxy.GetString("FRIEND_GIFT_ALREADY_SENT"); + this.GiftSuccessfullyReceiveHintText = XStringDefineProxy.GetString("FRIEND_RECEIVE_GIFT_HINT_FMT"); + this.GiftSuccessfullySentHintText = XStringDefineProxy.GetString("FRIEND_SEND_GIFT_HINT_FMT"); + this.Second = XStringDefineProxy.GetString("SECOND_DUARATION"); + this.Minute = XStringDefineProxy.GetString("MINUTE_DUARATION"); + this.Hour = XStringDefineProxy.GetString("HOUR_DUARATION"); + this.Day = XStringDefineProxy.GetString("DAY_DUARATION"); + this.Month = XStringDefineProxy.GetString("MONTH_DUARATION"); + this.Ago = XStringDefineProxy.GetString("AGO"); + } + + public override void Uninit() + { + this.CommonCountTotalFmt = null; + base.Uninit(); + } + } +} -- cgit v1.1-26-g67d0