10060 统一战令收益百分比来源为充值表Percentage
| | |
| | |
|
| | | public class CelestialStarTowerModel : ILModel<CelestialStarTowerModel>
|
| | | {
|
| | | //收益百分比
|
| | | public string profitRatio;
|
| | | // 战令类型对应的充值ID列表
|
| | | public Dictionary<int, int> ctgIdDict = new Dictionary<int, int>();
|
| | | //收到的所有服务器战令包字典
|
| | |
| | | ModelCenter.Instance.GetModel<SkyTowerModel>().OnChallengeState += OnFloorChange;
|
| | | FuncOpen.Instance.OnFuncStateChangeEvent += OnFunctionStateChange;
|
| | | ctgIdDict = GeneralDefine.OldZhanLingCtgIdDict;
|
| | | profitRatio = GeneralDefine.ZhanLingProfitRatio[2].ToString();
|
| | | typeToIDListDict = ILZhanlingConfig.GetAllTypeToIDListDict();
|
| | | }
|
| | |
|
| | |
| | | OrderInfoConfig orderCfg;
|
| | | vipModel.TryGetOrderInfo(CelestialStarTowerModel.Instance.ctgIdDict[3], out orderCfg);
|
| | | txtBuy.text = Language.Get("PayMoneyNum", orderCfg.PayRMBNum);
|
| | | txtProfitRatio.text = CelestialStarTowerModel.Instance.profitRatio;
|
| | | txtProfitRatio.text = Language.Get("BlessedLand039", CTGConfig.Get(CelestialStarTowerModel.Instance.ctgIdDict[3]).Percentage);
|
| | | }
|
| | |
|
| | | protected override void OnAfterOpen()
|
| | |
| | |
|
| | | public class GuBaoTotalStarsModel : ILModel<GuBaoTotalStarsModel>
|
| | | {
|
| | | //收益百分比
|
| | | public string profitRatio;
|
| | | // 战令类型对应的充值ID列表
|
| | | public Dictionary<int, int> ctgIdDict = new Dictionary<int, int>();
|
| | | //收到的所有服务器战令包字典
|
| | |
| | | TreasurePavilionModel.Instance.UpdateGubaoEvent += OnUpdateGubaoEvent;
|
| | | FuncOpen.Instance.OnFuncStateChangeEvent += OnFunctionStateChange;
|
| | | ctgIdDict = GeneralDefine.OldZhanLingCtgIdDict;
|
| | | profitRatio = GeneralDefine.ZhanLingProfitRatio[3].ToString();
|
| | | typeToIDListDict = ILZhanlingConfig.GetAllTypeToIDListDict();
|
| | | }
|
| | |
|
| | |
| | | OrderInfoConfig orderCfg;
|
| | | vipModel.TryGetOrderInfo(GuBaoTotalStarsModel.Instance.ctgIdDict[4], out orderCfg);
|
| | | txtBuy.text = Language.Get("PayMoneyNum", orderCfg.PayRMBNum);
|
| | | txtProfitRatio.text = GuBaoTotalStarsModel.Instance.profitRatio;
|
| | | txtProfitRatio.text = Language.Get("BlessedLand039", CTGConfig.Get(GuBaoTotalStarsModel.Instance.ctgIdDict[4]).Percentage);
|
| | | }
|
| | |
|
| | |
|
| | |
| | |
|
| | | public class LvZhanlingModel : ILModel<LvZhanlingModel>
|
| | | {
|
| | | //收益百分比
|
| | | public string profitRatio;
|
| | | // 战令类型对应的充值ID列表
|
| | | public Dictionary<int, int> ctgIdDict = new Dictionary<int, int>();
|
| | | //收到的所有服务器战令包字典
|
| | |
| | | PlayerDatas.Instance.playerDataRefreshEvent += OnplayerDataRefreshEvent;
|
| | | FuncOpen.Instance.OnFuncStateChangeEvent += OnFunctionStateChange;
|
| | | ctgIdDict = GeneralDefine.OldZhanLingCtgIdDict;
|
| | | profitRatio = GeneralDefine.ZhanLingProfitRatio[0].ToString();
|
| | | typeToIDListDict = ILZhanlingConfig.GetAllTypeToIDListDict();
|
| | | }
|
| | |
|
| | |
| | | OrderInfoConfig orderCfg;
|
| | | vipModel.TryGetOrderInfo(LvZhanlingModel.Instance.ctgIdDict[1], out orderCfg);
|
| | | txtBuy.text = Language.Get("PayMoneyNum", orderCfg.PayRMBNum);
|
| | | txtProfitRatio.text = LvZhanlingModel.Instance.profitRatio;
|
| | | txtProfitRatio.text = Language.Get("BlessedLand039", CTGConfig.Get(LvZhanlingModel.Instance.ctgIdDict[1]).Percentage);
|
| | | }
|
| | |
|
| | | protected override void OnAfterOpen()
|
| | |
| | |
|
| | | public class RealmLVZhanlingModel : ILModel<RealmLVZhanlingModel>
|
| | | {
|
| | | //收益百分比
|
| | | public string profitRatio;
|
| | | // 战令类型对应的充值ID列表
|
| | | public Dictionary<int, int> ctgIdDict = new Dictionary<int, int>();
|
| | | //收到的所有服务器战令包字典
|
| | |
| | | PlayerDatas.Instance.playerDataRefreshEvent += OnplayerDataRefreshEvent;
|
| | | FuncOpen.Instance.OnFuncStateChangeEvent += OnFunctionStateChange;
|
| | | ctgIdDict = GeneralDefine.OldZhanLingCtgIdDict;
|
| | | profitRatio = GeneralDefine.ZhanLingProfitRatio[1].ToString();
|
| | | typeToIDListDict = ILZhanlingConfig.GetAllTypeToIDListDict();
|
| | | }
|
| | |
|
| | |
| | | OrderInfoConfig orderCfg;
|
| | | vipModel.TryGetOrderInfo(RealmLVZhanlingModel.Instance.ctgIdDict[2], out orderCfg);
|
| | | txtBuy.text = Language.Get("PayMoneyNum", orderCfg.PayRMBNum);
|
| | | txtProfitRatio.text = RealmLVZhanlingModel.Instance.profitRatio;
|
| | | txtProfitRatio.text = Language.Get("BlessedLand039", CTGConfig.Get(RealmLVZhanlingModel.Instance.ctgIdDict[2]).Percentage);
|
| | | }
|
| | |
|
| | | protected override void OnAfterOpen()
|
| | |
| | | public static Dictionary<int, List<int>> ZhanLingCtgIdDict { get; private set; }
|
| | | public static Dictionary<int, List<int>> ZhanLingCtgIdHDict { get; private set; }
|
| | | public static Dictionary<int, int> OldZhanLingCtgIdDict { get; private set; }
|
| | | public static int[] ZhanLingProfitRatio { get; private set; }
|
| | |
|
| | | public static void Init()
|
| | | {
|
| | |
| | | }
|
| | |
|
| | | ZhanLingCtgIdHDict = new Dictionary<int, List<int>>();
|
| | | tempDict = JsonMapper.ToObject(func.Numerical3);
|
| | | tempDict = JsonMapper.ToObject(func.Numerical2);
|
| | | keyList = tempDict.Keys.ToList();
|
| | | for (int k = 0; k < keyList.Count; k++)
|
| | | {
|
| | | ZhanLingCtgIdHDict[int.Parse(keyList[k])] = JsonMapper.ToObject<List<int>>(tempDict[keyList[k]].ToJson());
|
| | | }
|
| | | ZhanLingProfitRatio = JsonMapper.ToObject<int[]>(func.Numerical2);
|
| | | }
|
| | |
|
| | | }
|
| | |
| | | {
|
| | | public readonly int ZhanLingHType = 5;
|
| | | public readonly int FuncId = 233;
|
| | | //收益百分比
|
| | | public string profitRatio;
|
| | |
|
| | | // 高级战令类型对应的充值ID列表
|
| | | public Dictionary<int, List<int>> ctgIdDictH = new Dictionary<int, List<int>>();
|
| | | public Dictionary<int, List<int>> ctgIdDict = new Dictionary<int, List<int>>();
|
| | |
| | | TimeMgr.Instance.OnDayEvent += OnDay;
|
| | | ctgIdDict = GeneralDefine.ZhanLingCtgIdDict;
|
| | | ctgIdDictH = GeneralDefine.ZhanLingCtgIdHDict;
|
| | | profitRatio = GeneralDefine.ZhanLingProfitRatio[Math.Max(ZhanLingHType - 1, 0)].ToString();
|
| | | }
|
| | |
|
| | | public void OnBeforePlayerDataInitialize()
|
| | |
| | | {
|
| | | public const int ZhanLingHType = 6;
|
| | | public const int FuncId = 155;
|
| | | //收益百分比
|
| | | public string profitRatio;
|
| | |
|
| | | // 高级战令类型对应的充值ID列表
|
| | | public Dictionary<int, List<int>> ctgIdDictH = new Dictionary<int, List<int>>();
|
| | | //
|
| | |
| | | model.UpdateSoulInfos += UpdateSoulInfo;
|
| | | ctgIdDict = GeneralDefine.ZhanLingCtgIdDict;
|
| | | ctgIdDictH = GeneralDefine.ZhanLingCtgIdHDict;
|
| | | profitRatio = GeneralDefine.ZhanLingProfitRatio[Math.Max(ZhanLingHType - 1, 0)].ToString();
|
| | | }
|
| | |
|
| | | public void OnBeforePlayerDataInitialize()
|
| | |
| | | public class GuBaoCultivateZhanLingModel : Model, IBeforePlayerDataInitialize
|
| | | {
|
| | | public readonly int ZhanLingHType = 8;
|
| | | //收益百分比
|
| | | public string profitRatio;
|
| | | // 高级战令类型对应的充值ID列表
|
| | | public Dictionary<int, List<int>> ctgIdDictH = new Dictionary<int, List<int>>();
|
| | | public Dictionary<int, List<int>> ctgIdDict = new Dictionary<int, List<int>>();
|
| | |
| | | treasurePavilionRankActModel.OnPlayerInfo += OnPlayerInfoEvent;
|
| | | ctgIdDict = GeneralDefine.ZhanLingCtgIdDict;
|
| | | ctgIdDictH = GeneralDefine.ZhanLingCtgIdHDict;
|
| | | profitRatio = GeneralDefine.ZhanLingProfitRatio[Math.Max(ZhanLingHType - 1, 0)].ToString();
|
| | | }
|
| | |
|
| | | public void OnBeforePlayerDataInitialize()
|
| | |
| | | public class MountedPetZhanLingModel : Model, IBeforePlayerDataInitialize
|
| | | {
|
| | | public readonly int ZhanLingHType = 7;
|
| | | //收益百分比
|
| | | public string profitRatio;
|
| | | // 高级战令类型对应的充值ID列表
|
| | | public Dictionary<int, List<int>> ctgIdDictH = new Dictionary<int, List<int>>();
|
| | | public Dictionary<int, List<int>> ctgIdDict = new Dictionary<int, List<int>>();
|
| | |
| | | petHorseActModel.OnPlayerInfo += OnPlayerInfoEvent;
|
| | | ctgIdDict = GeneralDefine.ZhanLingCtgIdDict;
|
| | | ctgIdDictH = GeneralDefine.ZhanLingCtgIdHDict;
|
| | | profitRatio = GeneralDefine.ZhanLingProfitRatio[Math.Max(ZhanLingHType - 1, 0)].ToString();
|
| | | }
|
| | |
|
| | | public void OnBeforePlayerDataInitialize()
|
| | |
| | | public int showGiftType; //1 普通战令礼包 2 高级战令礼包
|
| | | public string bgIconkey; //背景在Icon表中的KEY
|
| | |
|
| | | public string profitRatio;
|
| | | public Dictionary<int, List<int>> ctgIdDictH = new Dictionary<int, List<int>>();
|
| | | public Dictionary<int, List<int>> ctgIdDict = new Dictionary<int, List<int>>();
|
| | | VipModel vipModel { get { return ModelCenter.Instance.GetModel<VipModel>(); } }
|
| | |
| | | {
|
| | | ctgIdDict = GeneralDefine.ZhanLingCtgIdDict;
|
| | | ctgIdDictH = GeneralDefine.ZhanLingCtgIdHDict;
|
| | | profitRatio = GeneralDefine.ZhanLingProfitRatio[Math.Max(zhanLingType - 1, 0)].ToString();
|
| | | }
|
| | |
|
| | | public override void UnInit()
|