コード例 #1
0
        public static DeclareGuildMonsterIntrusion Create(string in_eight_wave, string in_eight_wave_boss, string in_first_wave, string in_first_wave_boss, string in_five_wave, string in_five_wave_boss, string in_four_wave, string in_four_wave_boss, string in_guard_npc, string in_guard_pos, int in_iD, string in_level, string in_monster_pos, string in_seven_wave, string in_seven_wave_boss, string in_six_wave, string in_six_wave_boss, string in_three_wave, string in_three_wave_boss, int in_transmission_gate, string in_two_wave, string in_two_wave_boss)
        {
            DeclareGuildMonsterIntrusion tmp = new DeclareGuildMonsterIntrusion();

            tmp._eight_wave      = in_eight_wave;
            tmp._eight_wave_boss = in_eight_wave_boss;
            tmp._first_wave      = in_first_wave;
            tmp._first_wave_boss = in_first_wave_boss;
            tmp._five_wave       = in_five_wave;
            tmp._five_wave_boss  = in_five_wave_boss;
            tmp._four_wave       = in_four_wave;
            tmp._four_wave_boss  = in_four_wave_boss;
            tmp._guard_npc       = in_guard_npc;
            tmp._guard_pos       = in_guard_pos;
            tmp._iD                = in_iD;
            tmp._level             = in_level;
            tmp._monster_pos       = in_monster_pos;
            tmp._seven_wave        = in_seven_wave;
            tmp._seven_wave_boss   = in_seven_wave_boss;
            tmp._six_wave          = in_six_wave;
            tmp._six_wave_boss     = in_six_wave_boss;
            tmp._three_wave        = in_three_wave;
            tmp._three_wave_boss   = in_three_wave_boss;
            tmp._transmission_gate = in_transmission_gate;
            tmp._two_wave          = in_two_wave;
            tmp._two_wave_boss     = in_two_wave_boss;

            return(tmp);
        }
コード例 #2
0
 public static void Convert(Dictionary <int, DeclareGuildMonsterIntrusion> data)
 {
     if (data == null)
     {
         return;
     }
     data.Clear();
     data.Add(1, DeclareGuildMonsterIntrusion.Create(StringDefines.Key_56308, StringDefines.Key_56309, StringDefines.Key_56310, StringDefines.Key_56311, StringDefines.Key_56312, StringDefines.Key_56313, StringDefines.Key_56314, StringDefines.Key_56315, StringDefines.Key_56316, StringDefines.Key_17001, 1, StringDefines.Key_14976, StringDefines.Key_56317, StringDefines.Key_56318, StringDefines.Key_56319, StringDefines.Key_56320, StringDefines.Key_56321, StringDefines.Key_56322, StringDefines.Key_56323, 250000, StringDefines.Key_56324, StringDefines.Key_56325));
     data.Add(2, DeclareGuildMonsterIntrusion.Create(StringDefines.Key_56326, StringDefines.Key_56327, StringDefines.Key_56328, StringDefines.Key_56329, StringDefines.Key_56330, StringDefines.Key_56331, StringDefines.Key_56332, StringDefines.Key_56333, StringDefines.Key_56316, StringDefines.Key_17001, 2, StringDefines.Key_56334, StringDefines.Key_56317, StringDefines.Key_56335, StringDefines.Key_56336, StringDefines.Key_56337, StringDefines.Key_56338, StringDefines.Key_56339, StringDefines.Key_56340, 250000, StringDefines.Key_56341, StringDefines.Key_56342));
     data.Add(3, DeclareGuildMonsterIntrusion.Create(StringDefines.Key_56343, StringDefines.Key_56344, StringDefines.Key_56345, StringDefines.Key_56346, StringDefines.Key_56347, StringDefines.Key_56348, StringDefines.Key_56349, StringDefines.Key_56350, StringDefines.Key_56316, StringDefines.Key_17001, 3, StringDefines.Key_56351, StringDefines.Key_56317, StringDefines.Key_56352, StringDefines.Key_56353, StringDefines.Key_56354, StringDefines.Key_56355, StringDefines.Key_56356, StringDefines.Key_56357, 250000, StringDefines.Key_56358, StringDefines.Key_56359));
     data.Add(4, DeclareGuildMonsterIntrusion.Create(StringDefines.Key_56360, StringDefines.Key_56361, StringDefines.Key_56362, StringDefines.Key_56363, StringDefines.Key_56364, StringDefines.Key_56365, StringDefines.Key_56366, StringDefines.Key_56367, StringDefines.Key_56316, StringDefines.Key_17001, 4, StringDefines.Key_56368, StringDefines.Key_56317, StringDefines.Key_56369, StringDefines.Key_56370, StringDefines.Key_56371, StringDefines.Key_56372, StringDefines.Key_56373, StringDefines.Key_56374, 250000, StringDefines.Key_56375, StringDefines.Key_56376));
     data.Add(5, DeclareGuildMonsterIntrusion.Create(StringDefines.Key_56377, StringDefines.Key_56378, StringDefines.Key_56379, StringDefines.Key_56380, StringDefines.Key_56381, StringDefines.Key_56382, StringDefines.Key_56383, StringDefines.Key_56384, StringDefines.Key_56316, StringDefines.Key_17001, 5, StringDefines.Key_56385, StringDefines.Key_56317, StringDefines.Key_56386, StringDefines.Key_56387, StringDefines.Key_56388, StringDefines.Key_56389, StringDefines.Key_56390, StringDefines.Key_56391, 250000, StringDefines.Key_56392, StringDefines.Key_56393));
     data.Add(6, DeclareGuildMonsterIntrusion.Create(StringDefines.Key_56394, StringDefines.Key_56395, StringDefines.Key_56396, StringDefines.Key_56397, StringDefines.Key_56398, StringDefines.Key_56399, StringDefines.Key_56400, StringDefines.Key_56401, StringDefines.Key_56316, StringDefines.Key_17001, 6, StringDefines.Key_56402, StringDefines.Key_56317, StringDefines.Key_56403, StringDefines.Key_56404, StringDefines.Key_56405, StringDefines.Key_56406, StringDefines.Key_56407, StringDefines.Key_56408, 250000, StringDefines.Key_56409, StringDefines.Key_56410));
     data.Add(7, DeclareGuildMonsterIntrusion.Create(StringDefines.Key_56411, StringDefines.Key_56412, StringDefines.Key_56413, StringDefines.Key_56414, StringDefines.Key_56415, StringDefines.Key_56416, StringDefines.Key_56417, StringDefines.Key_56418, StringDefines.Key_56316, StringDefines.Key_17001, 7, StringDefines.Key_56419, StringDefines.Key_56317, StringDefines.Key_56420, StringDefines.Key_56421, StringDefines.Key_56422, StringDefines.Key_56423, StringDefines.Key_56424, StringDefines.Key_56425, 250000, StringDefines.Key_56426, StringDefines.Key_56427));
     data.Add(8, DeclareGuildMonsterIntrusion.Create(StringDefines.Key_56428, StringDefines.Key_56429, StringDefines.Key_56430, StringDefines.Key_56431, StringDefines.Key_56432, StringDefines.Key_56433, StringDefines.Key_56434, StringDefines.Key_56435, StringDefines.Key_56316, StringDefines.Key_17001, 8, StringDefines.Key_56436, StringDefines.Key_56317, StringDefines.Key_56437, StringDefines.Key_56438, StringDefines.Key_56439, StringDefines.Key_56440, StringDefines.Key_56441, StringDefines.Key_56442, 250000, StringDefines.Key_56443, StringDefines.Key_56444));
     data.Add(9, DeclareGuildMonsterIntrusion.Create(StringDefines.Key_56445, StringDefines.Key_56446, StringDefines.Key_56447, StringDefines.Key_56448, StringDefines.Key_56449, StringDefines.Key_56450, StringDefines.Key_56451, StringDefines.Key_56452, StringDefines.Key_56316, StringDefines.Key_17001, 9, StringDefines.Key_56453, StringDefines.Key_56317, StringDefines.Key_56454, StringDefines.Key_56455, StringDefines.Key_56456, StringDefines.Key_56457, StringDefines.Key_56458, StringDefines.Key_56459, 250000, StringDefines.Key_56460, StringDefines.Key_56461));
     data.Add(10, DeclareGuildMonsterIntrusion.Create(StringDefines.Key_56462, StringDefines.Key_56463, StringDefines.Key_56464, StringDefines.Key_56465, StringDefines.Key_56466, StringDefines.Key_56467, StringDefines.Key_56468, StringDefines.Key_56469, StringDefines.Key_56316, StringDefines.Key_17001, 10, StringDefines.Key_56470, StringDefines.Key_56317, StringDefines.Key_56471, StringDefines.Key_56472, StringDefines.Key_56473, StringDefines.Key_56474, StringDefines.Key_56475, StringDefines.Key_56476, 250000, StringDefines.Key_56477, StringDefines.Key_56478));
     data.Add(11, DeclareGuildMonsterIntrusion.Create(StringDefines.Key_56479, StringDefines.Key_56480, StringDefines.Key_56481, StringDefines.Key_56482, StringDefines.Key_56483, StringDefines.Key_56484, StringDefines.Key_56485, StringDefines.Key_56486, StringDefines.Key_56316, StringDefines.Key_17001, 11, StringDefines.Key_56487, StringDefines.Key_56317, StringDefines.Key_56488, StringDefines.Key_56489, StringDefines.Key_56490, StringDefines.Key_56491, StringDefines.Key_56492, StringDefines.Key_56493, 250000, StringDefines.Key_56494, StringDefines.Key_56495));
     data.Add(12, DeclareGuildMonsterIntrusion.Create(StringDefines.Key_56496, StringDefines.Key_56497, StringDefines.Key_56498, StringDefines.Key_56499, StringDefines.Key_56500, StringDefines.Key_56501, StringDefines.Key_56502, StringDefines.Key_56503, StringDefines.Key_56316, StringDefines.Key_17001, 12, StringDefines.Key_56504, StringDefines.Key_56317, StringDefines.Key_56505, StringDefines.Key_56506, StringDefines.Key_56507, StringDefines.Key_56508, StringDefines.Key_56509, StringDefines.Key_56510, 250000, StringDefines.Key_56511, StringDefines.Key_56512));
     data.Add(13, DeclareGuildMonsterIntrusion.Create(StringDefines.Key_56513, StringDefines.Key_56514, StringDefines.Key_56515, StringDefines.Key_56516, StringDefines.Key_56517, StringDefines.Key_56518, StringDefines.Key_56519, StringDefines.Key_56520, StringDefines.Key_56316, StringDefines.Key_17001, 13, StringDefines.Key_56521, StringDefines.Key_56317, StringDefines.Key_56522, StringDefines.Key_56523, StringDefines.Key_56524, StringDefines.Key_56525, StringDefines.Key_56526, StringDefines.Key_56527, 250000, StringDefines.Key_56528, StringDefines.Key_56529));
     data.Add(14, DeclareGuildMonsterIntrusion.Create(StringDefines.Key_56530, StringDefines.Key_56531, StringDefines.Key_56532, StringDefines.Key_56533, StringDefines.Key_56534, StringDefines.Key_56535, StringDefines.Key_56536, StringDefines.Key_56537, StringDefines.Key_56316, StringDefines.Key_17001, 14, StringDefines.Key_56538, StringDefines.Key_56317, StringDefines.Key_56539, StringDefines.Key_56540, StringDefines.Key_56541, StringDefines.Key_56542, StringDefines.Key_56543, StringDefines.Key_56544, 250000, StringDefines.Key_56545, StringDefines.Key_56546));
     data.Add(15, DeclareGuildMonsterIntrusion.Create(StringDefines.Key_56547, StringDefines.Key_56548, StringDefines.Key_56549, StringDefines.Key_56550, StringDefines.Key_56551, StringDefines.Key_56552, StringDefines.Key_56553, StringDefines.Key_56554, StringDefines.Key_56316, StringDefines.Key_17001, 15, StringDefines.Key_56555, StringDefines.Key_56317, StringDefines.Key_56556, StringDefines.Key_56557, StringDefines.Key_56558, StringDefines.Key_56559, StringDefines.Key_56560, StringDefines.Key_56561, 250000, StringDefines.Key_56562, StringDefines.Key_56563));
     data.Add(16, DeclareGuildMonsterIntrusion.Create(StringDefines.Key_56564, StringDefines.Key_56565, StringDefines.Key_56566, StringDefines.Key_56567, StringDefines.Key_56568, StringDefines.Key_56569, StringDefines.Key_56570, StringDefines.Key_56571, StringDefines.Key_56316, StringDefines.Key_17001, 16, StringDefines.Key_56572, StringDefines.Key_56317, StringDefines.Key_56573, StringDefines.Key_56574, StringDefines.Key_56575, StringDefines.Key_56576, StringDefines.Key_56577, StringDefines.Key_56578, 250000, StringDefines.Key_56579, StringDefines.Key_56580));
     data.Add(17, DeclareGuildMonsterIntrusion.Create(StringDefines.Key_56581, StringDefines.Key_56582, StringDefines.Key_56583, StringDefines.Key_56584, StringDefines.Key_56585, StringDefines.Key_56586, StringDefines.Key_56587, StringDefines.Key_56588, StringDefines.Key_56316, StringDefines.Key_17001, 17, StringDefines.Key_56589, StringDefines.Key_56317, StringDefines.Key_56590, StringDefines.Key_56591, StringDefines.Key_56592, StringDefines.Key_56593, StringDefines.Key_56594, StringDefines.Key_56595, 250000, StringDefines.Key_56596, StringDefines.Key_56597));
     data.Add(18, DeclareGuildMonsterIntrusion.Create(StringDefines.Key_56598, StringDefines.Key_56599, StringDefines.Key_56600, StringDefines.Key_56601, StringDefines.Key_56602, StringDefines.Key_56603, StringDefines.Key_56604, StringDefines.Key_56605, StringDefines.Key_56316, StringDefines.Key_17001, 18, StringDefines.Key_56606, StringDefines.Key_56317, StringDefines.Key_56607, StringDefines.Key_56608, StringDefines.Key_56609, StringDefines.Key_56610, StringDefines.Key_56611, StringDefines.Key_56612, 250000, StringDefines.Key_56613, StringDefines.Key_56614));
     data.Add(19, DeclareGuildMonsterIntrusion.Create(StringDefines.Key_56615, StringDefines.Key_56616, StringDefines.Key_56617, StringDefines.Key_56618, StringDefines.Key_56619, StringDefines.Key_56620, StringDefines.Key_56621, StringDefines.Key_56622, StringDefines.Key_56316, StringDefines.Key_17001, 19, StringDefines.Key_56623, StringDefines.Key_56317, StringDefines.Key_56624, StringDefines.Key_56625, StringDefines.Key_56626, StringDefines.Key_56627, StringDefines.Key_56628, StringDefines.Key_56629, 250000, StringDefines.Key_56630, StringDefines.Key_56631));
     data.Add(20, DeclareGuildMonsterIntrusion.Create(StringDefines.Key_56632, StringDefines.Key_56633, StringDefines.Key_56634, StringDefines.Key_56635, StringDefines.Key_56636, StringDefines.Key_56637, StringDefines.Key_56638, StringDefines.Key_56639, StringDefines.Key_56316, StringDefines.Key_17001, 20, StringDefines.Key_56640, StringDefines.Key_56317, StringDefines.Key_56641, StringDefines.Key_56642, StringDefines.Key_56643, StringDefines.Key_56644, StringDefines.Key_56645, StringDefines.Key_56646, 250000, StringDefines.Key_56647, StringDefines.Key_56648));
     data.Add(21, DeclareGuildMonsterIntrusion.Create(StringDefines.Key_56649, StringDefines.Key_56650, StringDefines.Key_56651, StringDefines.Key_56652, StringDefines.Key_56653, StringDefines.Key_56654, StringDefines.Key_56655, StringDefines.Key_56656, StringDefines.Key_56316, StringDefines.Key_17001, 21, StringDefines.Key_56657, StringDefines.Key_56317, StringDefines.Key_56658, StringDefines.Key_56659, StringDefines.Key_56660, StringDefines.Key_56661, StringDefines.Key_56662, StringDefines.Key_56663, 250000, StringDefines.Key_56664, StringDefines.Key_56665));
 }
コード例 #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[]> >("DataGuildMonsterIntrusion");
                if (dic == null)
                {
                    LuaEnv.SharedLuaEnv.DoString("DataGuildMonsterIntrusion = require 'Lua/Config/DataGuildMonsterIntrusion'");
                    dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataGuildMonsterIntrusion");
                }

                if (dic != null)
                {
                    _dataCaches = new Dictionary <int, DeclareGuildMonsterIntrusion>(21);
                    foreach (var item in dic)
                    {
                        DeclareGuildMonsterIntrusion tmp = new DeclareGuildMonsterIntrusion();
                        tmp.EightWave        = CfgStringLua.Get(item.Value[0]);
                        tmp.EightWaveBoss    = CfgStringLua.Get(item.Value[1]);
                        tmp.FirstWave        = CfgStringLua.Get(item.Value[2]);
                        tmp.FirstWaveBoss    = CfgStringLua.Get(item.Value[3]);
                        tmp.FiveWave         = CfgStringLua.Get(item.Value[4]);
                        tmp.FiveWaveBoss     = CfgStringLua.Get(item.Value[5]);
                        tmp.FourWave         = CfgStringLua.Get(item.Value[6]);
                        tmp.FourWaveBoss     = CfgStringLua.Get(item.Value[7]);
                        tmp.GuardNpc         = CfgStringLua.Get(item.Value[8]);
                        tmp.GuardPos         = CfgStringLua.Get(item.Value[9]);
                        tmp.ID               = item.Value[10];
                        tmp.Level            = CfgStringLua.Get(item.Value[11]);
                        tmp.MonsterPos       = CfgStringLua.Get(item.Value[12]);
                        tmp.SevenWave        = CfgStringLua.Get(item.Value[13]);
                        tmp.SevenWaveBoss    = CfgStringLua.Get(item.Value[14]);
                        tmp.SixWave          = CfgStringLua.Get(item.Value[15]);
                        tmp.SixWaveBoss      = CfgStringLua.Get(item.Value[16]);
                        tmp.ThreeWave        = CfgStringLua.Get(item.Value[17]);
                        tmp.ThreeWaveBoss    = CfgStringLua.Get(item.Value[18]);
                        tmp.TransmissionGate = item.Value[19];
                        tmp.TwoWave          = CfgStringLua.Get(item.Value[20]);
                        tmp.TwoWaveBoss      = CfgStringLua.Get(item.Value[21]);

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