public static DeclarePlayerSkillEvolution Create(int in_cell_id, string in_desc, string in_effect_param, int in_icon, int in_id, int in_level, string in_name, int in_need_skill_point, int in_occ, string in_parent_cell) { DeclarePlayerSkillEvolution tmp = new DeclarePlayerSkillEvolution(); tmp._cell_id = in_cell_id; tmp._desc = in_desc; tmp._effect_param = in_effect_param; tmp._icon = in_icon; tmp._id = in_id; tmp._level = in_level; tmp._name = in_name; tmp._need_skill_point = in_need_skill_point; tmp._occ = in_occ; tmp._parent_cell = in_parent_cell; return(tmp); }
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[]> >("DataPlayerSkillEvolution"); if (dic == null) { LuaEnv.SharedLuaEnv.DoString("DataPlayerSkillEvolution = require 'Lua/Config/DataPlayerSkillEvolution'"); dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataPlayerSkillEvolution"); } if (dic != null) { _dataCaches = new Dictionary <int, DeclarePlayerSkillEvolution>(2664); foreach (var item in dic) { DeclarePlayerSkillEvolution tmp = new DeclarePlayerSkillEvolution(); tmp.CellId = item.Value[0]; tmp.Desc = CfgStringLua.Get(item.Value[1]); tmp.EffectParam = CfgStringLua.Get(item.Value[2]); tmp.Icon = item.Value[3]; tmp.Id = item.Value[4]; tmp.Level = item.Value[5]; tmp.Name = CfgStringLua.Get(item.Value[6]); tmp.NeedSkillPoint = item.Value[7]; tmp.Occ = item.Value[8]; tmp.ParentCell = CfgStringLua.Get(item.Value[9]); _dataCaches.Add(item.Key, tmp); } } Record(startTime, DateTime.Now.Ticks, "PlayerSkillEvolution"); } if (_dataCaches == null && _fillDataCallBack != null) { if (_dataCaches == null) { long startTime = DateTime.Now.Ticks; _dataCaches = new Dictionary <int, DeclarePlayerSkillEvolution>(2664); _fillDataCallBack(_dataCaches); Record(startTime, DateTime.Now.Ticks, "PlayerSkillEvolution"); } } }