| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(GodBeastModel); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 10, 10, 10); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 10, 11, 11); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBeforePlayerDataInitialize", _m_OnBeforePlayerDataInitialize); |
| | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "Absorption_Dic", _g_get_Absorption_Dic); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "ItemInde", _g_get_ItemInde); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "Crystal_ItemModel", _g_get_Crystal_ItemModel); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "ItemPos", _g_get_ItemPos); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "ItemPlace", _g_get_ItemPlace); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "QualityLimit", _g_get_QualityLimit); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "GodBeastRedPointDic", _g_get_GodBeastRedPointDic); |
| | |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "Absorption_Dic", _s_set_Absorption_Dic); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "ItemInde", _s_set_ItemInde); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "Crystal_ItemModel", _s_set_Crystal_ItemModel); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "ItemPos", _s_set_ItemPos); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "ItemPlace", _s_set_ItemPlace); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "QualityLimit", _s_set_QualityLimit); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "GodBeastRedPointDic", _s_set_GodBeastRedPointDic); |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_ItemPos(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | GodBeastModel gen_to_be_invoked = (GodBeastModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.ItemPos); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_ItemPlace(RealStatePtr L) |
| | | { |
| | | try { |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _s_set_ItemPos(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | GodBeastModel gen_to_be_invoked = (GodBeastModel)translator.FastGetCSObj(L, 1); |
| | | gen_to_be_invoked.ItemPos = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 0; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _s_set_ItemPlace(RealStatePtr L) |
| | | { |
| | | try { |