| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(Snxxz.UI.ActivityModel); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 8, 1, 0); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 10, 1, 0); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnInit", _m_UnInit); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPlayerLoginOk", _m_OnPlayerLoginOk); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBeforePlayerDataInitialize", _m_OnBeforePlayerDataInitialize); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "CheckLimit", _m_CheckLimit); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetActivityNotifty", _m_SetActivityNotifty); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetSpecialActivityData", _m_TryGetSpecialActivityData); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "CheckSpecialActivity", _m_CheckSpecialActivity); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetAncientRobotName", _m_GetAncientRobotName); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnActivityBehaviourCloseEvent", _e_OnActivityBehaviourCloseEvent); |
| | | |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_CheckLimit(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.ActivityModel gen_to_be_invoked = (Snxxz.UI.ActivityModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _type = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | bool gen_ret = gen_to_be_invoked.CheckLimit( _type ); |
| | | LuaAPI.lua_pushboolean(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_SetActivityNotifty(RealStatePtr L) |
| | | { |
| | | try { |
| | |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetAncientRobotName(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.ActivityModel gen_to_be_invoked = (Snxxz.UI.ActivityModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _objId = LuaAPI.xlua_tointeger(L, 2); |
| | | int _npcId = LuaAPI.xlua_tointeger(L, 3); |
| | | |
| | | string gen_ret = gen_to_be_invoked.GetAncientRobotName( _objId, _npcId ); |
| | | LuaAPI.lua_pushstring(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |