static int SendMsg(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); U3DEventFrame.NPCBase obj = (U3DEventFrame.NPCBase)ToLua.CheckObject(L, 1, typeof(U3DEventFrame.NPCBase)); U3DEventFrame.MsgBase arg0 = (U3DEventFrame.MsgBase)ToLua.CheckObject(L, 2, typeof(U3DEventFrame.MsgBase)); obj.SendMsg(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int UnRegistSelf(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); U3DEventFrame.NPCBase obj = (U3DEventFrame.NPCBase)ToLua.CheckObject(L, 1, typeof(U3DEventFrame.NPCBase)); U3DEventFrame.MonoBase arg0 = (U3DEventFrame.MonoBase)ToLua.CheckUnityObject(L, 2, typeof(U3DEventFrame.MonoBase)); ushort[] arg1 = ToLua.CheckParamsNumber <ushort>(L, 3, count - 2); obj.UnRegistSelf(arg0, arg1); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int get_msgIds(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); U3DEventFrame.NPCBase obj = (U3DEventFrame.NPCBase)o; ushort[] ret = obj.msgIds; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index msgIds on a nil value" : e.Message)); } }
static int set_msgIds(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); U3DEventFrame.NPCBase obj = (U3DEventFrame.NPCBase)o; ushort[] arg0 = ToLua.CheckNumberArray <ushort>(L, 2); obj.msgIds = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index msgIds on a nil value" : e.Message)); } }