Ejemplo n.º 1
0
        public static DeclareBossSoulBeasts Create(int in_bossLevel, int in_canShow, int in_cloneID, int in_crossSever, string in_drop, int in_dropEquipShow, int in_enterLevel, int in_head_icon, int in_iD, int in_layer, int in_mapsid, string in_monster_name, int in_monsterid, int in_num, string in_pos, int in_power, int in_size, int in_type)
        {
            DeclareBossSoulBeasts tmp = new DeclareBossSoulBeasts();

            tmp._bossLevel     = in_bossLevel;
            tmp._canShow       = in_canShow;
            tmp._cloneID       = in_cloneID;
            tmp._crossSever    = in_crossSever;
            tmp._drop          = in_drop;
            tmp._dropEquipShow = in_dropEquipShow;
            tmp._enterLevel    = in_enterLevel;
            tmp._head_icon     = in_head_icon;
            tmp._iD            = in_iD;
            tmp._layer         = in_layer;
            tmp._mapsid        = in_mapsid;
            tmp._monster_name  = in_monster_name;
            tmp._monsterid     = in_monsterid;
            tmp._num           = in_num;
            tmp._pos           = in_pos;
            tmp._power         = in_power;
            tmp._size          = in_size;
            tmp._type          = in_type;

            return(tmp);
        }
Ejemplo n.º 2
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[]> >("DataBossSoulBeasts");
                if (dic == null)
                {
                    LuaEnv.SharedLuaEnv.DoString("DataBossSoulBeasts = require 'Lua/Config/DataBossSoulBeasts'");
                    dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataBossSoulBeasts");
                }

                if (dic != null)
                {
                    _dataCaches = new Dictionary <int, DeclareBossSoulBeasts>(56);
                    foreach (var item in dic)
                    {
                        DeclareBossSoulBeasts tmp = new DeclareBossSoulBeasts();
                        tmp.BossLevel     = item.Value[0];
                        tmp.CanShow       = item.Value[1];
                        tmp.CloneID       = item.Value[2];
                        tmp.CrossSever    = item.Value[3];
                        tmp.Drop          = CfgStringLua.Get(item.Value[4]);
                        tmp.DropEquipShow = item.Value[5];
                        tmp.EnterLevel    = item.Value[6];
                        tmp.HeadIcon      = item.Value[7];
                        tmp.ID            = item.Value[8];
                        tmp.Layer         = item.Value[9];
                        tmp.Mapsid        = item.Value[10];
                        tmp.MonsterName   = CfgStringLua.Get(item.Value[11]);
                        tmp.Monsterid     = item.Value[12];
                        tmp.Num           = item.Value[13];
                        tmp.Pos           = CfgStringLua.Get(item.Value[14]);
                        tmp.Power         = item.Value[15];
                        tmp.Size          = item.Value[16];
                        tmp.Type          = item.Value[17];

                        _dataCaches.Add(item.Key, tmp);
                    }
                }
                Record(startTime, DateTime.Now.Ticks, "BossSoulBeasts");
            }
            if (_dataCaches == null && _fillDataCallBack != null)
            {
                if (_dataCaches == null)
                {
                    long startTime = DateTime.Now.Ticks;
                    _dataCaches = new Dictionary <int, DeclareBossSoulBeasts>(56);
                    _fillDataCallBack(_dataCaches);
                    Record(startTime, DateTime.Now.Ticks, "BossSoulBeasts");
                }
            }
        }
Ejemplo n.º 3
0
 public static void Convert(Dictionary <int, DeclareBossSoulBeasts> data)
 {
     if (data == null)
     {
         return;
     }
     data.Clear();
     data.Add(50001, DeclareBossSoulBeasts.Create(350, 1, 5250, 1, StringDefines.Key_20, 0, 350, 38, 50001, 1, 5250, StringDefines.Key_33572, 656002, 8, StringDefines.Key_33573, 0, 400, 1));
     data.Add(50002, DeclareBossSoulBeasts.Create(350, 1, 5250, 1, StringDefines.Key_20, 0, 350, 37, 50002, 1, 5250, StringDefines.Key_33574, 656001, 20, StringDefines.Key_33575, 0, 400, 2));
     data.Add(50003, DeclareBossSoulBeasts.Create(380, 1, 5250, 1, StringDefines.Key_20, 0, 350, 36, 50003, 1, 5250, StringDefines.Key_33576, 68001, 10, StringDefines.Key_33577, 0, 200, 3));
     data.Add(50004, DeclareBossSoulBeasts.Create(400, 1, 5250, 1, StringDefines.Key_20, 0, 350, 36, 50004, 1, 5250, StringDefines.Key_33576, 68002, 10, StringDefines.Key_33578, 0, 200, 3));
     data.Add(50005, DeclareBossSoulBeasts.Create(420, 1, 5250, 1, StringDefines.Key_20, 0, 350, 36, 50005, 1, 5250, StringDefines.Key_33576, 68003, 10, StringDefines.Key_33579, 0, 200, 3));
     data.Add(50006, DeclareBossSoulBeasts.Create(440, 1, 5250, 1, StringDefines.Key_20, 0, 350, 36, 50006, 1, 5250, StringDefines.Key_33576, 68004, 10, StringDefines.Key_33580, 0, 200, 3));
     data.Add(50007, DeclareBossSoulBeasts.Create(460, 1, 5250, 1, StringDefines.Key_20, 0, 350, 36, 50007, 1, 5250, StringDefines.Key_33576, 68005, 10, StringDefines.Key_33581, 0, 200, 3));
     data.Add(50008, DeclareBossSoulBeasts.Create(480, 1, 5250, 1, StringDefines.Key_20, 0, 350, 36, 50008, 1, 5250, StringDefines.Key_33576, 68006, 10, StringDefines.Key_33582, 0, 200, 3));
     data.Add(50009, DeclareBossSoulBeasts.Create(350, 1, 5250, 1, StringDefines.Key_33583, 8, 350, 8, 50009, 1, 5250, StringDefines.Key_33584, 68007, 1, StringDefines.Key_18320, 0, 300, 4));
     data.Add(50010, DeclareBossSoulBeasts.Create(370, 1, 5250, 1, StringDefines.Key_33585, 9, 350, 7, 50010, 1, 5250, StringDefines.Key_33586, 68008, 1, StringDefines.Key_18322, 0, 370, 4));
     data.Add(50011, DeclareBossSoulBeasts.Create(390, 1, 5250, 1, StringDefines.Key_33585, 9, 350, 35, 50011, 1, 5250, StringDefines.Key_33587, 68009, 1, StringDefines.Key_18323, 0, 410, 4));
     data.Add(50012, DeclareBossSoulBeasts.Create(400, 1, 5250, 1, StringDefines.Key_33585, 9, 350, 27, 50012, 1, 5250, StringDefines.Key_2919, 68010, 1, StringDefines.Key_18324, 0, 270, 4));
     data.Add(50013, DeclareBossSoulBeasts.Create(410, 1, 5250, 1, StringDefines.Key_33585, 9, 350, 4, 50013, 1, 5250, StringDefines.Key_33588, 68011, 1, StringDefines.Key_18326, 0, 370, 4));
     data.Add(50014, DeclareBossSoulBeasts.Create(430, 1, 5250, 1, StringDefines.Key_33589, 10, 350, 31, 50014, 1, 5250, StringDefines.Key_33590, 68012, 1, StringDefines.Key_18328, 0, 400, 4));
     data.Add(50015, DeclareBossSoulBeasts.Create(450, 1, 5250, 1, StringDefines.Key_33591, 10, 350, 12, 50015, 1, 5250, StringDefines.Key_2914, 68013, 1, StringDefines.Key_18330, 0, 310, 4));
     data.Add(50016, DeclareBossSoulBeasts.Create(460, 1, 5250, 1, StringDefines.Key_33591, 10, 350, 33, 50016, 1, 5250, StringDefines.Key_33592, 68014, 1, StringDefines.Key_18332, 0, 300, 4));
     data.Add(50017, DeclareBossSoulBeasts.Create(470, 1, 5250, 1, StringDefines.Key_33591, 10, 350, 2, 50017, 1, 5250, StringDefines.Key_2927, 68015, 1, StringDefines.Key_18334, 0, 370, 4));
     data.Add(50018, DeclareBossSoulBeasts.Create(490, 1, 5250, 1, StringDefines.Key_33593, 11, 350, 16, 50018, 1, 5250, StringDefines.Key_33594, 68016, 1, StringDefines.Key_18336, 0, 500, 4));
     data.Add(50019, DeclareBossSoulBeasts.Create(500, 1, 5250, 1, StringDefines.Key_33593, 11, 350, 26, 50019, 1, 5250, StringDefines.Key_33595, 68017, 1, StringDefines.Key_18337, 0, 350, 4));
     data.Add(50020, DeclareBossSoulBeasts.Create(510, 1, 5250, 1, StringDefines.Key_33593, 11, 350, 17, 50020, 1, 5250, StringDefines.Key_33596, 68018, 1, StringDefines.Key_18339, 0, 350, 4));
     data.Add(50021, DeclareBossSoulBeasts.Create(530, 1, 5250, 1, StringDefines.Key_33593, 11, 350, 34, 50021, 1, 5250, StringDefines.Key_33597, 68019, 1, StringDefines.Key_18341, 0, 470, 4));
     data.Add(50022, DeclareBossSoulBeasts.Create(350, 1, 5251, 1, StringDefines.Key_20, 0, 350, 39, 50022, 2, 5251, StringDefines.Key_33598, 656003, 8, StringDefines.Key_33573, 0, 400, 1));
     data.Add(50023, DeclareBossSoulBeasts.Create(350, 1, 5251, 1, StringDefines.Key_20, 0, 350, 37, 50023, 2, 5251, StringDefines.Key_33574, 656001, 20, StringDefines.Key_33575, 0, 400, 2));
     data.Add(50024, DeclareBossSoulBeasts.Create(500, 1, 5251, 1, StringDefines.Key_20, 0, 500, 36, 50024, 2, 5251, StringDefines.Key_33576, 68020, 10, StringDefines.Key_33577, 0, 200, 3));
     data.Add(50025, DeclareBossSoulBeasts.Create(520, 1, 5251, 1, StringDefines.Key_20, 0, 500, 36, 50025, 2, 5251, StringDefines.Key_33576, 68021, 10, StringDefines.Key_33578, 0, 200, 3));
     data.Add(50026, DeclareBossSoulBeasts.Create(540, 1, 5251, 1, StringDefines.Key_20, 0, 500, 36, 50026, 2, 5251, StringDefines.Key_33576, 68022, 10, StringDefines.Key_33579, 0, 200, 3));
     data.Add(50027, DeclareBossSoulBeasts.Create(560, 1, 5251, 1, StringDefines.Key_20, 0, 500, 36, 50027, 2, 5251, StringDefines.Key_33576, 68023, 10, StringDefines.Key_33580, 0, 200, 3));
     data.Add(50028, DeclareBossSoulBeasts.Create(580, 1, 5251, 1, StringDefines.Key_20, 0, 500, 36, 50028, 2, 5251, StringDefines.Key_33576, 68024, 10, StringDefines.Key_33581, 0, 200, 3));
     data.Add(50029, DeclareBossSoulBeasts.Create(600, 1, 5251, 1, StringDefines.Key_20, 0, 500, 36, 50029, 2, 5251, StringDefines.Key_33576, 68025, 10, StringDefines.Key_33582, 0, 200, 3));
     data.Add(50030, DeclareBossSoulBeasts.Create(550, 1, 5251, 1, StringDefines.Key_33599, 12, 500, 29, 50030, 2, 5251, StringDefines.Key_33600, 68026, 1, StringDefines.Key_18320, 0, 480, 4));
     data.Add(50031, DeclareBossSoulBeasts.Create(570, 1, 5251, 1, StringDefines.Key_33599, 12, 500, 9, 50031, 2, 5251, StringDefines.Key_33601, 68027, 1, StringDefines.Key_18322, 0, 460, 4));
     data.Add(50032, DeclareBossSoulBeasts.Create(590, 1, 5251, 1, StringDefines.Key_33599, 12, 500, 21, 50032, 2, 5251, StringDefines.Key_2909, 68028, 1, StringDefines.Key_18323, 0, 600, 4));
     data.Add(50033, DeclareBossSoulBeasts.Create(610, 1, 5251, 1, StringDefines.Key_33593, 13, 500, 30, 50033, 2, 5251, StringDefines.Key_33602, 68029, 1, StringDefines.Key_18324, 0, 510, 4));
     data.Add(50034, DeclareBossSoulBeasts.Create(630, 1, 5251, 1, StringDefines.Key_33593, 13, 500, 6, 50034, 2, 5251, StringDefines.Key_33603, 68030, 1, StringDefines.Key_18326, 0, 420, 4));
     data.Add(50035, DeclareBossSoulBeasts.Create(650, 1, 5251, 1, StringDefines.Key_33593, 13, 500, 1, 50035, 2, 5251, StringDefines.Key_2923, 68031, 1, StringDefines.Key_18328, 0, 360, 4));
     data.Add(50036, DeclareBossSoulBeasts.Create(670, 0, 5251, 1, StringDefines.Key_33593, 14, 500, 19, 50036, 2, 5251, StringDefines.Key_2911, 68032, 1, StringDefines.Key_18330, 0, 1300, 4));
     data.Add(50037, DeclareBossSoulBeasts.Create(690, 0, 5251, 1, StringDefines.Key_33593, 14, 500, 32, 50037, 2, 5251, StringDefines.Key_33604, 68033, 1, StringDefines.Key_18332, 0, 800, 4));
     data.Add(50038, DeclareBossSoulBeasts.Create(710, 0, 5251, 1, StringDefines.Key_33593, 14, 500, 10, 50038, 2, 5251, StringDefines.Key_2925, 68034, 1, StringDefines.Key_18334, 0, 680, 4));
     data.Add(50039, DeclareBossSoulBeasts.Create(730, 0, 5251, 1, StringDefines.Key_33593, 15, 500, 5, 50039, 2, 5251, StringDefines.Key_33605, 68035, 1, StringDefines.Key_18336, 0, 680, 4));
     data.Add(50040, DeclareBossSoulBeasts.Create(750, 0, 5251, 1, StringDefines.Key_33593, 15, 500, 20, 50040, 2, 5251, StringDefines.Key_33606, 68036, 1, StringDefines.Key_18337, 0, 1300, 4));
     data.Add(50041, DeclareBossSoulBeasts.Create(350, 1, 5252, 0, StringDefines.Key_20, 0, 350, 38, 50041, 1, 5252, StringDefines.Key_33572, 656005, 8, StringDefines.Key_33573, 0, 400, 1));
     data.Add(50042, DeclareBossSoulBeasts.Create(350, 1, 5252, 0, StringDefines.Key_20, 0, 350, 37, 50042, 1, 5252, StringDefines.Key_33574, 656004, 20, StringDefines.Key_33575, 0, 400, 2));
     data.Add(50043, DeclareBossSoulBeasts.Create(380, 1, 5252, 0, StringDefines.Key_20, 0, 350, 36, 50043, 1, 5252, StringDefines.Key_33576, 68037, 10, StringDefines.Key_33577, 0, 200, 3));
     data.Add(50044, DeclareBossSoulBeasts.Create(400, 1, 5252, 0, StringDefines.Key_20, 0, 350, 36, 50044, 1, 5252, StringDefines.Key_33576, 68038, 10, StringDefines.Key_33578, 0, 200, 3));
     data.Add(50045, DeclareBossSoulBeasts.Create(420, 1, 5252, 0, StringDefines.Key_20, 0, 350, 36, 50045, 1, 5252, StringDefines.Key_33576, 68039, 10, StringDefines.Key_33579, 0, 200, 3));
     data.Add(50046, DeclareBossSoulBeasts.Create(440, 1, 5252, 0, StringDefines.Key_20, 0, 350, 36, 50046, 1, 5252, StringDefines.Key_33576, 68040, 10, StringDefines.Key_33580, 0, 200, 3));
     data.Add(50047, DeclareBossSoulBeasts.Create(460, 1, 5252, 0, StringDefines.Key_20, 0, 350, 36, 50047, 1, 5252, StringDefines.Key_33576, 68041, 10, StringDefines.Key_33581, 0, 200, 3));
     data.Add(50048, DeclareBossSoulBeasts.Create(480, 1, 5252, 0, StringDefines.Key_20, 0, 350, 36, 50048, 1, 5252, StringDefines.Key_33576, 68042, 10, StringDefines.Key_33582, 0, 200, 3));
     data.Add(50049, DeclareBossSoulBeasts.Create(355, 1, 5252, 0, StringDefines.Key_33607, 8, 350, 8, 50049, 1, 5252, StringDefines.Key_33584, 68043, 1, StringDefines.Key_18320, 0, 300, 4));
     data.Add(50050, DeclareBossSoulBeasts.Create(365, 1, 5252, 0, StringDefines.Key_33607, 8, 350, 7, 50050, 1, 5252, StringDefines.Key_33586, 68044, 1, StringDefines.Key_18322, 0, 370, 4));
     data.Add(50051, DeclareBossSoulBeasts.Create(375, 1, 5252, 0, StringDefines.Key_33608, 9, 350, 35, 50051, 1, 5252, StringDefines.Key_33587, 68045, 1, StringDefines.Key_18323, 0, 410, 4));
     data.Add(50052, DeclareBossSoulBeasts.Create(390, 1, 5252, 0, StringDefines.Key_33608, 9, 350, 27, 50052, 1, 5252, StringDefines.Key_2919, 68046, 1, StringDefines.Key_18324, 0, 270, 4));
     data.Add(50053, DeclareBossSoulBeasts.Create(400, 1, 5252, 0, StringDefines.Key_33608, 9, 350, 4, 50053, 1, 5252, StringDefines.Key_33588, 68047, 1, StringDefines.Key_18326, 0, 370, 4));
     data.Add(50054, DeclareBossSoulBeasts.Create(410, 1, 5252, 0, StringDefines.Key_33608, 9, 350, 31, 50054, 1, 5252, StringDefines.Key_33590, 68048, 1, StringDefines.Key_18328, 0, 400, 4));
     data.Add(50055, DeclareBossSoulBeasts.Create(420, 1, 5252, 0, StringDefines.Key_33589, 10, 350, 12, 50055, 1, 5252, StringDefines.Key_2914, 68049, 1, StringDefines.Key_18330, 0, 310, 4));
     data.Add(50056, DeclareBossSoulBeasts.Create(430, 1, 5252, 0, StringDefines.Key_33589, 10, 350, 33, 50056, 1, 5252, StringDefines.Key_33609, 68050, 1, StringDefines.Key_18332, 0, 300, 4));
 }