static int set_delayExecute(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); GameManager obj = (GameManager)o; GameManager.LuaExecute arg0 = null; LuaTypes funcType2 = LuaDLL.lua_type(L, 2); if (funcType2 != LuaTypes.LUA_TFUNCTION) { arg0 = (GameManager.LuaExecute)ToLua.CheckObject(L, 2, typeof(GameManager.LuaExecute)); } else { LuaFunction func = ToLua.ToLuaFunction(L, 2); arg0 = DelegateFactory.CreateDelegate(typeof(GameManager.LuaExecute), func) as GameManager.LuaExecute; } obj.delayExecute = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index delayExecute on a nil value" : e.Message)); } }
static int get_delayExecute(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); GameManager obj = (GameManager)o; GameManager.LuaExecute ret = obj.delayExecute; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index delayExecute on a nil value" : e.Message)); } }
public static Delegate GameManager_LuaExecute(LuaFunction func, LuaTable self, bool flag) { if (func == null) { GameManager.LuaExecute fn = delegate(object param0) { }; return(fn); } if (!flag) { GameManager_LuaExecute_Event target = new GameManager_LuaExecute_Event(func); GameManager.LuaExecute d = target.Call; target.method = d.Method; return(d); } else { GameManager_LuaExecute_Event target = new GameManager_LuaExecute_Event(func, self); GameManager.LuaExecute d = target.CallWithSelf; target.method = d.Method; return(d); } }