public static void Convert(Dictionary <int, DeclareHorseMythical> data) { if (data == null) { return; } data.Clear(); data.Add(101, DeclareHorseMythical.Create(StringDefines.Key_34402, StringDefines.Key_34403, 300, 0, 141, 101, 10, StringDefines.Key_11550, 1, 1, 40300, 1, StringDefines.Key_34404, StringDefines.Key_34403, 1, -148)); data.Add(102, DeclareHorseMythical.Create(StringDefines.Key_34405, StringDefines.Key_34406, 350, 0, 993, 102, 10, StringDefines.Key_34407, 1, 2, 42600, 1, StringDefines.Key_34408, StringDefines.Key_34406, 1, -142)); data.Add(113, DeclareHorseMythical.Create(StringDefines.Key_34409, StringDefines.Key_34410, 300, 0, 1156, 113, 10, StringDefines.Key_2080, 1, 7, 44100, 1, StringDefines.Key_34411, StringDefines.Key_34412, 1, -148)); data.Add(114, DeclareHorseMythical.Create(StringDefines.Key_34409, StringDefines.Key_34413, 350, 1, 995, 114, 10, StringDefines.Key_2082, 1, 8, 43300, 1, StringDefines.Key_34411, StringDefines.Key_34414, 2, -142)); data.Add(115, DeclareHorseMythical.Create(StringDefines.Key_34409, StringDefines.Key_34415, 350, 0, 1152, 115, 10, StringDefines.Key_2084, 1, 9, 43900, 1, StringDefines.Key_34411, StringDefines.Key_34416, 1, -170)); data.Add(103, DeclareHorseMythical.Create(StringDefines.Key_34417, StringDefines.Key_34418, 350, 1, 507, 103, 10, StringDefines.Key_34419, 1, 3, 41600, 1, StringDefines.Key_34420, StringDefines.Key_34421, 2, -170)); data.Add(104, DeclareHorseMythical.Create(StringDefines.Key_34417, StringDefines.Key_34422, 350, 1, 1124, 104, 20, StringDefines.Key_11543, 1, 4, 43800, 1, StringDefines.Key_34420, StringDefines.Key_34422, 2, -145)); data.Add(105, DeclareHorseMythical.Create(StringDefines.Key_34423, StringDefines.Key_34424, 350, 0, 1123, 105, 10, StringDefines.Key_34425, 1, 5, 43100, 2, StringDefines.Key_34426, StringDefines.Key_34424, 3, -151)); data.Add(106, DeclareHorseMythical.Create(StringDefines.Key_34427, StringDefines.Key_34428, 250, 1, 93, 106, 10, StringDefines.Key_34429, 1, 6, 41100, 1, StringDefines.Key_34430, StringDefines.Key_34428, 2, -148)); data.Add(107, DeclareHorseMythical.Create(StringDefines.Key_34431, StringDefines.Key_34432, 400, 1, 990, 107, 10, StringDefines.Key_34433, 1, 13, 42500, 1, StringDefines.Key_34434, StringDefines.Key_34432, 2, -180)); data.Add(108, DeclareHorseMythical.Create(StringDefines.Key_34435, StringDefines.Key_34436, 350, 1, 514, 108, 10, StringDefines.Key_33602, 1, 14, 41500, 1, StringDefines.Key_34437, StringDefines.Key_34436, 2, -145)); data.Add(109, DeclareHorseMythical.Create(StringDefines.Key_34435, StringDefines.Key_34438, 250, 1, 1153, 109, 1, StringDefines.Key_34439, 1, 15, 43500, 1, StringDefines.Key_34437, StringDefines.Key_34438, 2, -145)); data.Add(110, DeclareHorseMythical.Create(StringDefines.Key_34440, StringDefines.Key_34441, 350, 1, 1007, 110, 20, StringDefines.Key_34442, 1, 16, 41200, 1, StringDefines.Key_34443, StringDefines.Key_34441, 2, -150)); data.Add(116, DeclareHorseMythical.Create(StringDefines.Key_34444, StringDefines.Key_34445, 350, 1, 2020, 116, 10, StringDefines.Key_2086, 1, 10, 44200, 1, StringDefines.Key_34446, StringDefines.Key_34447, 2, -145)); data.Add(117, DeclareHorseMythical.Create(StringDefines.Key_34444, StringDefines.Key_34448, 350, 0, 1154, 117, 10, StringDefines.Key_2088, 1, 11, 43600, 1, StringDefines.Key_34446, StringDefines.Key_34449, 1, -151)); data.Add(118, DeclareHorseMythical.Create(StringDefines.Key_34444, StringDefines.Key_34450, 250, 0, 510, 118, 10, StringDefines.Key_2095, 1, 12, 44300, 1, StringDefines.Key_34446, StringDefines.Key_34451, 1, -148)); data.Add(119, DeclareHorseMythical.Create(StringDefines.Key_34452, StringDefines.Key_34453, 400, 1, 987, 119, 10, StringDefines.Key_2097, 1, 17, 42200, 1, StringDefines.Key_34454, StringDefines.Key_34455, 2, -180)); data.Add(120, DeclareHorseMythical.Create(StringDefines.Key_34452, StringDefines.Key_34456, 350, 1, 527, 120, 10, StringDefines.Key_2099, 1, 18, 41400, 1, StringDefines.Key_34454, StringDefines.Key_34457, 2, -145)); data.Add(121, DeclareHorseMythical.Create(StringDefines.Key_34452, StringDefines.Key_34458, 400, 1, 1155, 121, 10, StringDefines.Key_2101, 1, 19, 43700, 2, StringDefines.Key_34454, StringDefines.Key_34459, 3, -145)); data.Add(111, DeclareHorseMythical.Create(StringDefines.Key_34460, StringDefines.Key_34461, 600, 1, 526, 111, 10, StringDefines.Key_34462, 1, 20, 41700, 5, StringDefines.Key_34463, StringDefines.Key_34464, 3, -151)); data.Add(112, DeclareHorseMythical.Create(StringDefines.Key_34465, StringDefines.Key_34466, 500, 1, 211, 112, 10, StringDefines.Key_34467, 1, 21, 41900, 1, StringDefines.Key_34468, StringDefines.Key_34469, 2, -152)); }
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[]> >("DataHorseMythical"); if (dic == null) { LuaEnv.SharedLuaEnv.DoString("DataHorseMythical = require 'Lua/Config/DataHorseMythical'"); dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataHorseMythical"); } if (dic != null) { _dataCaches = new Dictionary <int, DeclareHorseMythical>(21); foreach (var item in dic) { DeclareHorseMythical tmp = new DeclareHorseMythical(); tmp.ActiveAttr = CfgStringLua.Get(item.Value[0]); tmp.ActiveItem = CfgStringLua.Get(item.Value[1]); tmp.CameraSize = item.Value[2]; tmp.CanFly = item.Value[3]; tmp.Icon = item.Value[4]; tmp.Id = item.Value[5]; tmp.MaxLevel = item.Value[6]; tmp.Name = CfgStringLua.Get(item.Value[7]); tmp.Notice = item.Value[8]; tmp.Priority = item.Value[9]; tmp.Res = item.Value[10]; tmp.RideNum = item.Value[11]; tmp.TrainAttr = CfgStringLua.Get(item.Value[12]); tmp.TrainItem = CfgStringLua.Get(item.Value[13]); tmp.Type = item.Value[14]; tmp.YNum = item.Value[15]; _dataCaches.Add(item.Key, tmp); } } Record(startTime, DateTime.Now.Ticks, "HorseMythical"); } if (_dataCaches == null && _fillDataCallBack != null) { if (_dataCaches == null) { long startTime = DateTime.Now.Ticks; _dataCaches = new Dictionary <int, DeclareHorseMythical>(21); _fillDataCallBack(_dataCaches); Record(startTime, DateTime.Now.Ticks, "HorseMythical"); } } }
public static DeclareHorseMythical Create(string in_active_attr, string in_active_item, int in_camera_size, int in_can_fly, int in_icon, int in_id, int in_max_level, string in_name, int in_notice, int in_priority, int in_res, int in_ride_num, string in_train_attr, string in_train_item, int in_type, int in_y_num) { DeclareHorseMythical tmp = new DeclareHorseMythical(); tmp._active_attr = in_active_attr; tmp._active_item = in_active_item; tmp._camera_size = in_camera_size; tmp._can_fly = in_can_fly; tmp._icon = in_icon; tmp._id = in_id; tmp._max_level = in_max_level; tmp._name = in_name; tmp._notice = in_notice; tmp._priority = in_priority; tmp._res = in_res; tmp._ride_num = in_ride_num; tmp._train_attr = in_train_attr; tmp._train_item = in_train_item; tmp._type = in_type; tmp._y_num = in_y_num; return(tmp); }