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