示例#1
0
 public static void Convert(Dictionary <int, DeclareVipLevel> data)
 {
     if (data == null)
     {
         return;
     }
     data.Clear();
     data.Add(0, DeclareVipLevel.Create(StringDefines.Key_20, StringDefines.Key_10474, 1, 0, 10, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, StringDefines.Key_18090, StringDefines.Key_20, StringDefines.Key_18091, 0, 0, 0, 10, 1000, 10, 0, -1, -1, 0, 0));
     data.Add(1, DeclareVipLevel.Create(StringDefines.Key_20, StringDefines.Key_10474, 1, 1, 11, 0, 0, 1008, 1, 1, 0, 0, 0, 0, 1, 0, StringDefines.Key_18092, StringDefines.Key_20, StringDefines.Key_18093, 0, 1, 60, 11, 1000, 11, 1, -1, 1800000, 1, 0));
     data.Add(2, DeclareVipLevel.Create(StringDefines.Key_20, StringDefines.Key_10474, 1, 2, 12, 0, 0, 1008, 1, 1, 0, 0, 1, 0, 2, 0, StringDefines.Key_18094, StringDefines.Key_20, StringDefines.Key_18095, 0, 2, 300, 12, 1500, 12, 1, -1, 0, 2, 0));
     data.Add(3, DeclareVipLevel.Create(StringDefines.Key_20, StringDefines.Key_10474, 1, 3, 12, 0, 0, 1008, 1, 1, 0, 0, 1, 0, 2, 0, StringDefines.Key_18096, StringDefines.Key_20, StringDefines.Key_18097, 0, 3, 680, 13, 1500, 13, 2, -1, 0, 2, 0));
     data.Add(4, DeclareVipLevel.Create(StringDefines.Key_20, StringDefines.Key_10474, 2, 4, 13, 1, 0, 1008, 1, 1, 0, 0, 1, 0, 3, 0, StringDefines.Key_18098, StringDefines.Key_20, StringDefines.Key_18099, 0, 4, 1200, 14, 2000, 14, 2, -1, 0, 3, 0));
     data.Add(5, DeclareVipLevel.Create(StringDefines.Key_20, StringDefines.Key_10474, 2, 5, 13, 1, 0, 1008, 1, 1, 1, 0, 2, 0, 3, 0, StringDefines.Key_18100, StringDefines.Key_20, StringDefines.Key_18101, 0, 5, 25000, 15, 2000, 15, 3, -1, 0, 3, 0));
     data.Add(6, DeclareVipLevel.Create(StringDefines.Key_20, StringDefines.Key_10474, 3, 6, 14, 1, 0, 1008, 1, 1, 1, 0, 2, 0, 4, 0, StringDefines.Key_18102, StringDefines.Key_20, StringDefines.Key_18103, 1, 6, 50000, 16, 2500, 16, 3, -1, 0, 4, 0));
     data.Add(7, DeclareVipLevel.Create(StringDefines.Key_20, StringDefines.Key_10474, 3, 7, 14, 1, 0, 1008, 1, 1, 1, 0, 2, 0, 4, 0, StringDefines.Key_18104, StringDefines.Key_20, StringDefines.Key_18105, 1, 7, 100000, 17, 2500, 17, 4, -1, 0, 4, 0));
     data.Add(8, DeclareVipLevel.Create(StringDefines.Key_20, StringDefines.Key_10474, 4, 8, 15, 1, 0, 1008, 1, 1, 1, 0, 3, 0, 5, 0, StringDefines.Key_18106, StringDefines.Key_20, StringDefines.Key_18107, 1, 8, 200000, 18, 3000, 18, 4, -1, 0, 5, 0));
     data.Add(9, DeclareVipLevel.Create(StringDefines.Key_20, StringDefines.Key_10474, 4, 9, 15, 1, 0, 1008, 1, 1, 1, 0, 3, 0, 5, 0, StringDefines.Key_18108, StringDefines.Key_20, StringDefines.Key_18109, 1, 9, 500000, 19, 3000, 19, 5, -1, 0, 5, 0));
 }
示例#2
0
        public static DeclareVipLevel Create(string in_addBuyCount, string in_addItemUseCount, int in_bossElementsTemple, int in_bossGodCloneNum, int in_bossGodRuinsNum, int in_bossHome, int in_bossPersonalNum, int in_buffID, int in_canFreeTranspot, int in_canSell, int in_canSkipCloneStory, int in_cloneBombing, int in_cloneExpNum, int in_cloneManyPeople, int in_cloneStoryNum, int in_cloneTrial, string in_des, string in_equip, string in_gift, int in_hearseDiftNum, int in_level, int in_needSpend, int in_prayExpNum, int in_prayMoneyCritChance, int in_prayMoneyNum, int in_titleID, int in_titleIDtime, int in_vipOverTime, int in_yingLingDianNum, int in_yyHuanJingNum)
        {
            DeclareVipLevel tmp = new DeclareVipLevel();

            tmp._addBuyCount        = in_addBuyCount;
            tmp._addItemUseCount    = in_addItemUseCount;
            tmp._bossElementsTemple = in_bossElementsTemple;
            tmp._bossGodCloneNum    = in_bossGodCloneNum;
            tmp._bossGodRuinsNum    = in_bossGodRuinsNum;
            tmp._bossHome           = in_bossHome;
            tmp._bossPersonalNum    = in_bossPersonalNum;
            tmp._buffID             = in_buffID;
            tmp._canFreeTranspot    = in_canFreeTranspot;
            tmp._canSell            = in_canSell;
            tmp._canSkipCloneStory  = in_canSkipCloneStory;
            tmp._cloneBombing       = in_cloneBombing;
            tmp._cloneExpNum        = in_cloneExpNum;
            tmp._cloneManyPeople    = in_cloneManyPeople;
            tmp._cloneStoryNum      = in_cloneStoryNum;
            tmp._cloneTrial         = in_cloneTrial;
            tmp._des                 = in_des;
            tmp._equip               = in_equip;
            tmp._gift                = in_gift;
            tmp._hearseDiftNum       = in_hearseDiftNum;
            tmp._level               = in_level;
            tmp._needSpend           = in_needSpend;
            tmp._prayExpNum          = in_prayExpNum;
            tmp._prayMoneyCritChance = in_prayMoneyCritChance;
            tmp._prayMoneyNum        = in_prayMoneyNum;
            tmp._titleID             = in_titleID;
            tmp._titleIDtime         = in_titleIDtime;
            tmp._vipOverTime         = in_vipOverTime;
            tmp._yingLingDianNum     = in_yingLingDianNum;
            tmp._yyHuanJingNum       = in_yyHuanJingNum;

            return(tmp);
        }
示例#3
0
        public static void SetData()
        {
            if (_dataCaches == null && LuaEnv.isLoadLuaCfg)
            {
                long startTime = DateTime.Now.Ticks;
                Dictionary <int, int[]> dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataVipLevel");
                if (dic == null)
                {
                    LuaEnv.SharedLuaEnv.DoString("DataVipLevel = require 'Lua/Config/DataVipLevel'");
                    dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataVipLevel");
                }

                if (dic != null)
                {
                    _dataCaches = new Dictionary <int, DeclareVipLevel>(10);
                    foreach (var item in dic)
                    {
                        DeclareVipLevel tmp = new DeclareVipLevel();
                        tmp.AddBuyCount        = CfgStringLua.Get(item.Value[0]);
                        tmp.AddItemUseCount    = CfgStringLua.Get(item.Value[1]);
                        tmp.BossElementsTemple = item.Value[2];
                        tmp.BossGodCloneNum    = item.Value[3];
                        tmp.BossGodRuinsNum    = item.Value[4];
                        tmp.BossHome           = item.Value[5];
                        tmp.BossPersonalNum    = item.Value[6];
                        tmp.BuffID             = item.Value[7];
                        tmp.CanFreeTranspot    = item.Value[8];
                        tmp.CanSell            = item.Value[9];
                        tmp.CanSkipCloneStory  = item.Value[10];
                        tmp.CloneBombing       = item.Value[11];
                        tmp.CloneExpNum        = item.Value[12];
                        tmp.CloneManyPeople    = item.Value[13];
                        tmp.CloneStoryNum      = item.Value[14];
                        tmp.CloneTrial         = item.Value[15];
                        tmp.Des                 = CfgStringLua.Get(item.Value[16]);
                        tmp.Equip               = CfgStringLua.Get(item.Value[17]);
                        tmp.Gift                = CfgStringLua.Get(item.Value[18]);
                        tmp.HearseDiftNum       = item.Value[19];
                        tmp.Level               = item.Value[20];
                        tmp.NeedSpend           = item.Value[21];
                        tmp.PrayExpNum          = item.Value[22];
                        tmp.PrayMoneyCritChance = item.Value[23];
                        tmp.PrayMoneyNum        = item.Value[24];
                        tmp.TitleID             = item.Value[25];
                        tmp.TitleIDtime         = item.Value[26];
                        tmp.VipOverTime         = item.Value[27];
                        tmp.YingLingDianNum     = item.Value[28];
                        tmp.YyHuanJingNum       = item.Value[29];

                        _dataCaches.Add(item.Key, tmp);
                    }
                }
                Record(startTime, DateTime.Now.Ticks, "VipLevel");
            }
            if (_dataCaches == null && _fillDataCallBack != null)
            {
                if (_dataCaches == null)
                {
                    long startTime = DateTime.Now.Ticks;
                    _dataCaches = new Dictionary <int, DeclareVipLevel>(10);
                    _fillDataCallBack(_dataCaches);
                    Record(startTime, DateTime.Now.Ticks, "VipLevel");
                }
            }
        }