static int set_OnWndDestroy(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); WndManage obj = (WndManage)o; WndManage.Evt_WndDestroy arg0 = null; LuaTypes funcType2 = LuaDLL.lua_type(L, 2); if (funcType2 != LuaTypes.LUA_TFUNCTION) { arg0 = (WndManage.Evt_WndDestroy)ToLua.CheckObject(L, 2, typeof(WndManage.Evt_WndDestroy)); } else { LuaFunction func = ToLua.ToLuaFunction(L, 2); arg0 = DelegateFactory.CreateDelegate(typeof(WndManage.Evt_WndDestroy), func) as WndManage.Evt_WndDestroy; } obj.OnWndDestroy = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index OnWndDestroy on a nil value" : e.Message)); } }
static int get_OnWndDestroy(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); WndManage obj = (WndManage)o; WndManage.Evt_WndDestroy ret = obj.OnWndDestroy; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index OnWndDestroy on a nil value" : e.Message)); } }