static int PushEvent(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); UIMod obj = (UIMod)ToLua.CheckObject(L, 1, typeof(UIMod)); object arg0 = ToLua.ToVarObject(L, 2); obj.PushEvent(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }