| | |
| | | public partial class DelegateBridge : DelegateBridgeBase |
| | | { |
| | | |
| | | public InvokeLua.ICalc __Gen_Delegate_Imp0(int p0, string[] p1) |
| | | public void __Gen_Delegate_Imp0(ushort p0, byte[] p1) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | | { |
| | | #endif |
| | | RealStatePtr L = luaEnv.rawL; |
| | | int err_func =LuaAPI.load_error_func(L, errorFuncRef); |
| | | ObjectTranslator translator = luaEnv.translator; |
| | | |
| | | LuaAPI.lua_getref(L, luaReference); |
| | | |
| | | LuaAPI.xlua_pushinteger(L, p0); |
| | | if (p1 != null) { for (int __gen_i = 0; __gen_i < p1.Length; ++__gen_i) LuaAPI.lua_pushstring(L, p1[__gen_i]); }; |
| | | |
| | | int __gen_error = LuaAPI.lua_pcall(L, 1 + (p1 == null ? 0 : p1.Length), 1, err_func); |
| | | if (__gen_error != 0) |
| | | luaEnv.ThrowExceptionFromError(err_func - 1); |
| | | |
| | | |
| | | InvokeLua.ICalc __gen_ret = (InvokeLua.ICalc)translator.GetObject(L, err_func + 1, typeof(InvokeLua.ICalc)); |
| | | LuaAPI.lua_settop(L, err_func - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public int __Gen_Delegate_Imp1(int p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | | { |
| | | #endif |
| | | RealStatePtr L = luaEnv.rawL; |
| | | int err_func =LuaAPI.load_error_func(L, errorFuncRef); |
| | | |
| | | |
| | | LuaAPI.lua_getref(L, luaReference); |
| | | |
| | | LuaAPI.xlua_pushinteger(L, p0); |
| | | |
| | | int __gen_error = LuaAPI.lua_pcall(L, 1, 1, err_func); |
| | | if (__gen_error != 0) |
| | | luaEnv.ThrowExceptionFromError(err_func - 1); |
| | | |
| | | |
| | | int __gen_ret = LuaAPI.xlua_tointeger(L, err_func + 1); |
| | | LuaAPI.lua_settop(L, err_func - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public UnityEngine.Vector3 __Gen_Delegate_Imp2(UnityEngine.Vector3 p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | | { |
| | | #endif |
| | | RealStatePtr L = luaEnv.rawL; |
| | | int err_func =LuaAPI.load_error_func(L, errorFuncRef); |
| | | ObjectTranslator translator = luaEnv.translator; |
| | | |
| | | LuaAPI.lua_getref(L, luaReference); |
| | | |
| | | translator.PushUnityEngineVector3(L, p0); |
| | | |
| | | int __gen_error = LuaAPI.lua_pcall(L, 1, 1, err_func); |
| | | if (__gen_error != 0) |
| | | luaEnv.ThrowExceptionFromError(err_func - 1); |
| | | |
| | | |
| | | UnityEngine.Vector3 __gen_ret;translator.Get(L, err_func + 1, out __gen_ret); |
| | | LuaAPI.lua_settop(L, err_func - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public XLuaTest.MyStruct __Gen_Delegate_Imp3(XLuaTest.MyStruct p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | | { |
| | | #endif |
| | | RealStatePtr L = luaEnv.rawL; |
| | | int err_func =LuaAPI.load_error_func(L, errorFuncRef); |
| | | ObjectTranslator translator = luaEnv.translator; |
| | | |
| | | LuaAPI.lua_getref(L, luaReference); |
| | | |
| | | translator.PushXLuaTestMyStruct(L, p0); |
| | | |
| | | int __gen_error = LuaAPI.lua_pcall(L, 1, 1, err_func); |
| | | if (__gen_error != 0) |
| | | luaEnv.ThrowExceptionFromError(err_func - 1); |
| | | |
| | | |
| | | XLuaTest.MyStruct __gen_ret;translator.Get(L, err_func + 1, out __gen_ret); |
| | | LuaAPI.lua_settop(L, err_func - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public XLuaTest.MyEnum __Gen_Delegate_Imp4(XLuaTest.MyEnum p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | | { |
| | | #endif |
| | | RealStatePtr L = luaEnv.rawL; |
| | | int err_func =LuaAPI.load_error_func(L, errorFuncRef); |
| | | ObjectTranslator translator = luaEnv.translator; |
| | | |
| | | LuaAPI.lua_getref(L, luaReference); |
| | | |
| | | translator.PushXLuaTestMyEnum(L, p0); |
| | | |
| | | int __gen_error = LuaAPI.lua_pcall(L, 1, 1, err_func); |
| | | if (__gen_error != 0) |
| | | luaEnv.ThrowExceptionFromError(err_func - 1); |
| | | |
| | | |
| | | XLuaTest.MyEnum __gen_ret;translator.Get(L, err_func + 1, out __gen_ret); |
| | | LuaAPI.lua_settop(L, err_func - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public decimal __Gen_Delegate_Imp5(decimal p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | | { |
| | | #endif |
| | | RealStatePtr L = luaEnv.rawL; |
| | | int err_func =LuaAPI.load_error_func(L, errorFuncRef); |
| | | ObjectTranslator translator = luaEnv.translator; |
| | | |
| | | LuaAPI.lua_getref(L, luaReference); |
| | | |
| | | translator.PushDecimal(L, p0); |
| | | |
| | | int __gen_error = LuaAPI.lua_pcall(L, 1, 1, err_func); |
| | | if (__gen_error != 0) |
| | | luaEnv.ThrowExceptionFromError(err_func - 1); |
| | | |
| | | |
| | | decimal __gen_ret;translator.Get(L, err_func + 1, out __gen_ret); |
| | | LuaAPI.lua_settop(L, err_func - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp6(System.Array p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | | { |
| | | #endif |
| | | RealStatePtr L = luaEnv.rawL; |
| | | int err_func =LuaAPI.load_error_func(L, errorFuncRef); |
| | | ObjectTranslator translator = luaEnv.translator; |
| | | |
| | | LuaAPI.lua_getref(L, luaReference); |
| | | |
| | | translator.Push(L, p0); |
| | | |
| | | int __gen_error = LuaAPI.lua_pcall(L, 1, 0, err_func); |
| | | if (__gen_error != 0) |
| | | luaEnv.ThrowExceptionFromError(err_func - 1); |
| | | |
| | | |
| | | |
| | | LuaAPI.lua_settop(L, err_func - 1); |
| | | |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp7() |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | | { |
| | | #endif |
| | | RealStatePtr L = luaEnv.rawL; |
| | | int err_func =LuaAPI.load_error_func(L, errorFuncRef); |
| | | |
| | | |
| | | LuaAPI.lua_getref(L, luaReference); |
| | | |
| | | |
| | | int __gen_error = LuaAPI.lua_pcall(L, 0, 0, err_func); |
| | | if (__gen_error != 0) |
| | | luaEnv.ThrowExceptionFromError(err_func - 1); |
| | | |
| | | |
| | | |
| | | LuaAPI.lua_settop(L, err_func - 1); |
| | | |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp8(bool p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | | { |
| | | #endif |
| | | RealStatePtr L = luaEnv.rawL; |
| | | int err_func =LuaAPI.load_error_func(L, errorFuncRef); |
| | | |
| | | |
| | | LuaAPI.lua_getref(L, luaReference); |
| | | |
| | | LuaAPI.lua_pushboolean(L, p0); |
| | | |
| | | int __gen_error = LuaAPI.lua_pcall(L, 1, 0, err_func); |
| | | if (__gen_error != 0) |
| | | luaEnv.ThrowExceptionFromError(err_func - 1); |
| | | |
| | | |
| | | |
| | | LuaAPI.lua_settop(L, err_func - 1); |
| | | |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public int __Gen_Delegate_Imp9(HotfixCalc p0, int p1, out double p2, ref string p3) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | | { |
| | | #endif |
| | | RealStatePtr L = luaEnv.rawL; |
| | | int err_func =LuaAPI.load_error_func(L, errorFuncRef); |
| | | ObjectTranslator translator = luaEnv.translator; |
| | | |
| | | LuaAPI.lua_getref(L, luaReference); |
| | | |
| | | translator.Push(L, p0); |
| | | LuaAPI.xlua_pushinteger(L, p1); |
| | | LuaAPI.lua_pushstring(L, p3); |
| | | |
| | | int __gen_error = LuaAPI.lua_pcall(L, 3, 3, err_func); |
| | | if (__gen_error != 0) |
| | | luaEnv.ThrowExceptionFromError(err_func - 1); |
| | | |
| | | p2 = LuaAPI.lua_tonumber(L, err_func + 2); |
| | | p3 = LuaAPI.lua_tostring(L, err_func + 3); |
| | | |
| | | int __gen_ret = LuaAPI.xlua_tointeger(L, err_func + 1); |
| | | LuaAPI.lua_settop(L, err_func - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public double __Gen_Delegate_Imp10(double p0, double p1) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | | { |
| | | #endif |
| | | RealStatePtr L = luaEnv.rawL; |
| | | int err_func =LuaAPI.load_error_func(L, errorFuncRef); |
| | | |
| | | |
| | | LuaAPI.lua_getref(L, luaReference); |
| | | |
| | | LuaAPI.lua_pushnumber(L, p0); |
| | | LuaAPI.lua_pushnumber(L, p1); |
| | | |
| | | int __gen_error = LuaAPI.lua_pcall(L, 2, 1, err_func); |
| | | if (__gen_error != 0) |
| | | luaEnv.ThrowExceptionFromError(err_func - 1); |
| | | |
| | | |
| | | double __gen_ret = LuaAPI.lua_tonumber(L, err_func + 1); |
| | | LuaAPI.lua_settop(L, err_func - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp11(string p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | | { |
| | | #endif |
| | | RealStatePtr L = luaEnv.rawL; |
| | | int err_func =LuaAPI.load_error_func(L, errorFuncRef); |
| | | |
| | | |
| | | LuaAPI.lua_getref(L, luaReference); |
| | | |
| | | LuaAPI.lua_pushstring(L, p0); |
| | | |
| | | int __gen_error = LuaAPI.lua_pcall(L, 1, 0, err_func); |
| | | if (__gen_error != 0) |
| | | luaEnv.ThrowExceptionFromError(err_func - 1); |
| | | |
| | | |
| | | |
| | | LuaAPI.lua_settop(L, err_func - 1); |
| | | |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp12(double p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | | { |
| | | #endif |
| | | RealStatePtr L = luaEnv.rawL; |
| | | int err_func =LuaAPI.load_error_func(L, errorFuncRef); |
| | | |
| | | |
| | | LuaAPI.lua_getref(L, luaReference); |
| | | |
| | | LuaAPI.lua_pushnumber(L, p0); |
| | | |
| | | int __gen_error = LuaAPI.lua_pcall(L, 1, 0, err_func); |
| | | if (__gen_error != 0) |
| | | luaEnv.ThrowExceptionFromError(err_func - 1); |
| | | |
| | | |
| | | |
| | | LuaAPI.lua_settop(L, err_func - 1); |
| | | |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public int __Gen_Delegate_Imp13(int p0, string p1, out CSCallLua.DClass p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | | { |
| | | #endif |
| | | RealStatePtr L = luaEnv.rawL; |
| | | int err_func =LuaAPI.load_error_func(L, errorFuncRef); |
| | | ObjectTranslator translator = luaEnv.translator; |
| | | |
| | | LuaAPI.lua_getref(L, luaReference); |
| | | int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); |
| | | |
| | | LuaAPI.xlua_pushinteger(L, p0); |
| | | LuaAPI.lua_pushstring(L, p1); |
| | | |
| | | int __gen_error = LuaAPI.lua_pcall(L, 2, 2, err_func); |
| | | if (__gen_error != 0) |
| | | luaEnv.ThrowExceptionFromError(err_func - 1); |
| | | |
| | | p2 = (CSCallLua.DClass)translator.GetObject(L, err_func + 2, typeof(CSCallLua.DClass)); |
| | | |
| | | int __gen_ret = LuaAPI.xlua_tointeger(L, err_func + 1); |
| | | LuaAPI.lua_settop(L, err_func - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public System.Action __Gen_Delegate_Imp14() |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | | { |
| | | #endif |
| | | RealStatePtr L = luaEnv.rawL; |
| | | int err_func =LuaAPI.load_error_func(L, errorFuncRef); |
| | | ObjectTranslator translator = luaEnv.translator; |
| | | |
| | | LuaAPI.lua_getref(L, luaReference); |
| | | |
| | | |
| | | int __gen_error = LuaAPI.lua_pcall(L, 0, 1, err_func); |
| | | if (__gen_error != 0) |
| | | luaEnv.ThrowExceptionFromError(err_func - 1); |
| | | |
| | | |
| | | System.Action __gen_ret = translator.GetDelegate<System.Action>(L, err_func + 1); |
| | | LuaAPI.lua_settop(L, err_func - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp15(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | | { |
| | | #endif |
| | | RealStatePtr L = luaEnv.rawL; |
| | | int err_func =LuaAPI.load_error_func(L, errorFuncRef); |
| | | ObjectTranslator translator = luaEnv.translator; |
| | | |
| | | LuaAPI.lua_getref(L, luaReference); |
| | | |
| | | translator.PushAny(L, p0); |
| | | |
| | | int __gen_error = LuaAPI.lua_pcall(L, 1, 0, err_func); |
| | | if (__gen_error != 0) |
| | | luaEnv.ThrowExceptionFromError(err_func - 1); |
| | | PCall(L, 2, 0, errFunc); |
| | | |
| | | |
| | | |
| | | LuaAPI.lua_settop(L, err_func - 1); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public int __Gen_Delegate_Imp16(object p0, int p1, int p2) |
| | | public void __Gen_Delegate_Imp1(ushort p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | | { |
| | | #endif |
| | | RealStatePtr L = luaEnv.rawL; |
| | | int err_func =LuaAPI.load_error_func(L, errorFuncRef); |
| | | ObjectTranslator translator = luaEnv.translator; |
| | | |
| | | LuaAPI.lua_getref(L, luaReference); |
| | | |
| | | translator.PushAny(L, p0); |
| | | LuaAPI.xlua_pushinteger(L, p1); |
| | | LuaAPI.xlua_pushinteger(L, p2); |
| | | |
| | | int __gen_error = LuaAPI.lua_pcall(L, 3, 1, err_func); |
| | | if (__gen_error != 0) |
| | | luaEnv.ThrowExceptionFromError(err_func - 1); |
| | | |
| | | |
| | | int __gen_ret = LuaAPI.xlua_tointeger(L, err_func + 1); |
| | | LuaAPI.lua_settop(L, err_func - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public UnityEngine.Vector3 __Gen_Delegate_Imp17(object p0, UnityEngine.Vector3 p1, UnityEngine.Vector3 p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | | { |
| | | #endif |
| | | RealStatePtr L = luaEnv.rawL; |
| | | int err_func =LuaAPI.load_error_func(L, errorFuncRef); |
| | | ObjectTranslator translator = luaEnv.translator; |
| | | |
| | | LuaAPI.lua_getref(L, luaReference); |
| | | |
| | | translator.PushAny(L, p0); |
| | | translator.PushUnityEngineVector3(L, p1); |
| | | translator.PushUnityEngineVector3(L, p2); |
| | | |
| | | int __gen_error = LuaAPI.lua_pcall(L, 3, 1, err_func); |
| | | if (__gen_error != 0) |
| | | luaEnv.ThrowExceptionFromError(err_func - 1); |
| | | |
| | | |
| | | UnityEngine.Vector3 __gen_ret;translator.Get(L, err_func + 1, out __gen_ret); |
| | | LuaAPI.lua_settop(L, err_func - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public int __Gen_Delegate_Imp18(object p0, int p1, out double p2, ref string p3) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | | { |
| | | #endif |
| | | RealStatePtr L = luaEnv.rawL; |
| | | int err_func =LuaAPI.load_error_func(L, errorFuncRef); |
| | | ObjectTranslator translator = luaEnv.translator; |
| | | |
| | | LuaAPI.lua_getref(L, luaReference); |
| | | |
| | | translator.PushAny(L, p0); |
| | | LuaAPI.xlua_pushinteger(L, p1); |
| | | LuaAPI.lua_pushstring(L, p3); |
| | | |
| | | int __gen_error = LuaAPI.lua_pcall(L, 3, 3, err_func); |
| | | if (__gen_error != 0) |
| | | luaEnv.ThrowExceptionFromError(err_func - 1); |
| | | |
| | | p2 = LuaAPI.lua_tonumber(L, err_func + 2); |
| | | p3 = LuaAPI.lua_tostring(L, err_func + 3); |
| | | |
| | | int __gen_ret = LuaAPI.xlua_tointeger(L, err_func + 1); |
| | | LuaAPI.lua_settop(L, err_func - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public int __Gen_Delegate_Imp19(object p0, int p1, out double p2, ref string p3, object p4) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | | { |
| | | #endif |
| | | RealStatePtr L = luaEnv.rawL; |
| | | int err_func =LuaAPI.load_error_func(L, errorFuncRef); |
| | | ObjectTranslator translator = luaEnv.translator; |
| | | |
| | | LuaAPI.lua_getref(L, luaReference); |
| | | |
| | | translator.PushAny(L, p0); |
| | | LuaAPI.xlua_pushinteger(L, p1); |
| | | LuaAPI.lua_pushstring(L, p3); |
| | | translator.PushAny(L, p4); |
| | | |
| | | int __gen_error = LuaAPI.lua_pcall(L, 4, 3, err_func); |
| | | if (__gen_error != 0) |
| | | luaEnv.ThrowExceptionFromError(err_func - 1); |
| | | |
| | | p2 = LuaAPI.lua_tonumber(L, err_func + 2); |
| | | p3 = LuaAPI.lua_tostring(L, err_func + 3); |
| | | |
| | | int __gen_ret = LuaAPI.xlua_tointeger(L, err_func + 1); |
| | | LuaAPI.lua_settop(L, err_func - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp20(object p0, int p1) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | | { |
| | | #endif |
| | | RealStatePtr L = luaEnv.rawL; |
| | | int err_func =LuaAPI.load_error_func(L, errorFuncRef); |
| | | ObjectTranslator translator = luaEnv.translator; |
| | | |
| | | LuaAPI.lua_getref(L, luaReference); |
| | | |
| | | translator.PushAny(L, p0); |
| | | LuaAPI.xlua_pushinteger(L, p1); |
| | | |
| | | int __gen_error = LuaAPI.lua_pcall(L, 2, 0, err_func); |
| | | if (__gen_error != 0) |
| | | luaEnv.ThrowExceptionFromError(err_func - 1); |
| | | |
| | | |
| | | |
| | | LuaAPI.lua_settop(L, err_func - 1); |
| | | |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public string __Gen_Delegate_Imp21(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | | { |
| | | #endif |
| | | RealStatePtr L = luaEnv.rawL; |
| | | int err_func =LuaAPI.load_error_func(L, errorFuncRef); |
| | | ObjectTranslator translator = luaEnv.translator; |
| | | |
| | | LuaAPI.lua_getref(L, luaReference); |
| | | |
| | | translator.PushAny(L, p0); |
| | | |
| | | int __gen_error = LuaAPI.lua_pcall(L, 1, 1, err_func); |
| | | if (__gen_error != 0) |
| | | luaEnv.ThrowExceptionFromError(err_func - 1); |
| | | |
| | | |
| | | string __gen_ret = LuaAPI.lua_tostring(L, err_func + 1); |
| | | LuaAPI.lua_settop(L, err_func - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public UnityEngine.GameObject __Gen_Delegate_Imp22(StructTest p0, int p1, object p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | | { |
| | | #endif |
| | | RealStatePtr L = luaEnv.rawL; |
| | | int err_func =LuaAPI.load_error_func(L, errorFuncRef); |
| | | ObjectTranslator translator = luaEnv.translator; |
| | | |
| | | LuaAPI.lua_getref(L, luaReference); |
| | | |
| | | translator.Push(L, p0); |
| | | LuaAPI.xlua_pushinteger(L, p1); |
| | | translator.PushAny(L, p2); |
| | | |
| | | int __gen_error = LuaAPI.lua_pcall(L, 3, 1, err_func); |
| | | if (__gen_error != 0) |
| | | luaEnv.ThrowExceptionFromError(err_func - 1); |
| | | |
| | | |
| | | UnityEngine.GameObject __gen_ret = (UnityEngine.GameObject)translator.GetObject(L, err_func + 1, typeof(UnityEngine.GameObject)); |
| | | LuaAPI.lua_settop(L, err_func - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public string __Gen_Delegate_Imp23(StructTest p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | | { |
| | | #endif |
| | | RealStatePtr L = luaEnv.rawL; |
| | | int err_func =LuaAPI.load_error_func(L, errorFuncRef); |
| | | ObjectTranslator translator = luaEnv.translator; |
| | | |
| | | LuaAPI.lua_getref(L, luaReference); |
| | | |
| | | translator.Push(L, p0); |
| | | |
| | | int __gen_error = LuaAPI.lua_pcall(L, 1, 1, err_func); |
| | | if (__gen_error != 0) |
| | | luaEnv.ThrowExceptionFromError(err_func - 1); |
| | | |
| | | |
| | | string __gen_ret = LuaAPI.lua_tostring(L, err_func + 1); |
| | | LuaAPI.lua_settop(L, err_func - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp24(StructTest p0, object p1) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | | { |
| | | #endif |
| | | RealStatePtr L = luaEnv.rawL; |
| | | int err_func =LuaAPI.load_error_func(L, errorFuncRef); |
| | | ObjectTranslator translator = luaEnv.translator; |
| | | |
| | | LuaAPI.lua_getref(L, luaReference); |
| | | |
| | | translator.Push(L, p0); |
| | | translator.PushAny(L, p1); |
| | | |
| | | int __gen_error = LuaAPI.lua_pcall(L, 2, 0, err_func); |
| | | if (__gen_error != 0) |
| | | luaEnv.ThrowExceptionFromError(err_func - 1); |
| | | |
| | | |
| | | |
| | | LuaAPI.lua_settop(L, err_func - 1); |
| | | |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public int __Gen_Delegate_Imp25(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | | { |
| | | #endif |
| | | RealStatePtr L = luaEnv.rawL; |
| | | int err_func =LuaAPI.load_error_func(L, errorFuncRef); |
| | | ObjectTranslator translator = luaEnv.translator; |
| | | |
| | | LuaAPI.lua_getref(L, luaReference); |
| | | |
| | | translator.PushAny(L, p0); |
| | | |
| | | int __gen_error = LuaAPI.lua_pcall(L, 1, 1, err_func); |
| | | if (__gen_error != 0) |
| | | luaEnv.ThrowExceptionFromError(err_func - 1); |
| | | |
| | | |
| | | int __gen_ret = LuaAPI.xlua_tointeger(L, err_func + 1); |
| | | LuaAPI.lua_settop(L, err_func - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp26(object p0, object p1) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | | { |
| | | #endif |
| | | RealStatePtr L = luaEnv.rawL; |
| | | int err_func =LuaAPI.load_error_func(L, errorFuncRef); |
| | | ObjectTranslator translator = luaEnv.translator; |
| | | |
| | | LuaAPI.lua_getref(L, luaReference); |
| | | |
| | | translator.PushAny(L, p0); |
| | | translator.PushAny(L, p1); |
| | | |
| | | int __gen_error = LuaAPI.lua_pcall(L, 2, 0, err_func); |
| | | if (__gen_error != 0) |
| | | luaEnv.ThrowExceptionFromError(err_func - 1); |
| | | |
| | | |
| | | |
| | | LuaAPI.lua_settop(L, err_func - 1); |
| | | |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public int __Gen_Delegate_Imp27(object p0, object p1) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | | { |
| | | #endif |
| | | RealStatePtr L = luaEnv.rawL; |
| | | int err_func =LuaAPI.load_error_func(L, errorFuncRef); |
| | | ObjectTranslator translator = luaEnv.translator; |
| | | |
| | | LuaAPI.lua_getref(L, luaReference); |
| | | |
| | | translator.PushAny(L, p0); |
| | | translator.PushAny(L, p1); |
| | | |
| | | int __gen_error = LuaAPI.lua_pcall(L, 2, 1, err_func); |
| | | if (__gen_error != 0) |
| | | luaEnv.ThrowExceptionFromError(err_func - 1); |
| | | |
| | | |
| | | int __gen_ret = LuaAPI.xlua_tointeger(L, err_func + 1); |
| | | LuaAPI.lua_settop(L, err_func - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp28(object p0, object p1, int p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | | { |
| | | #endif |
| | | RealStatePtr L = luaEnv.rawL; |
| | | int err_func =LuaAPI.load_error_func(L, errorFuncRef); |
| | | ObjectTranslator translator = luaEnv.translator; |
| | | |
| | | LuaAPI.lua_getref(L, luaReference); |
| | | |
| | | translator.PushAny(L, p0); |
| | | translator.PushAny(L, p1); |
| | | LuaAPI.xlua_pushinteger(L, p2); |
| | | |
| | | int __gen_error = LuaAPI.lua_pcall(L, 3, 0, err_func); |
| | | if (__gen_error != 0) |
| | | luaEnv.ThrowExceptionFromError(err_func - 1); |
| | | |
| | | |
| | | |
| | | LuaAPI.lua_settop(L, err_func - 1); |
| | | |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp29(int p0, int p1) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | | { |
| | | #endif |
| | | RealStatePtr L = luaEnv.rawL; |
| | | int err_func =LuaAPI.load_error_func(L, errorFuncRef); |
| | | |
| | | |
| | | LuaAPI.lua_getref(L, luaReference); |
| | | int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); |
| | | |
| | | LuaAPI.xlua_pushinteger(L, p0); |
| | | LuaAPI.xlua_pushinteger(L, p1); |
| | | |
| | | int __gen_error = LuaAPI.lua_pcall(L, 2, 0, err_func); |
| | | if (__gen_error != 0) |
| | | luaEnv.ThrowExceptionFromError(err_func - 1); |
| | | PCall(L, 1, 0, errFunc); |
| | | |
| | | |
| | | |
| | | LuaAPI.lua_settop(L, err_func - 1); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp30(object p0, int p1, int p2) |
| | | public void __Gen_Delegate_Imp2() |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | | { |
| | | #endif |
| | | RealStatePtr L = luaEnv.rawL; |
| | | int err_func =LuaAPI.load_error_func(L, errorFuncRef); |
| | | int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); |
| | | |
| | | |
| | | PCall(L, 0, 0, errFunc); |
| | | |
| | | |
| | | |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public bool __Gen_Delegate_Imp3(int p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | | { |
| | | #endif |
| | | RealStatePtr L = luaEnv.rawL; |
| | | int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); |
| | | |
| | | LuaAPI.xlua_pushinteger(L, p0); |
| | | |
| | | PCall(L, 1, 1, errFunc); |
| | | |
| | | |
| | | bool __gen_ret = LuaAPI.lua_toboolean(L, errFunc + 1); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public double __Gen_Delegate_Imp4(double p0, double p1) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | | { |
| | | #endif |
| | | RealStatePtr L = luaEnv.rawL; |
| | | int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); |
| | | |
| | | LuaAPI.lua_pushnumber(L, p0); |
| | | LuaAPI.lua_pushnumber(L, p1); |
| | | |
| | | PCall(L, 2, 1, errFunc); |
| | | |
| | | |
| | | double __gen_ret = LuaAPI.lua_tonumber(L, errFunc + 1); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp5(string p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | | { |
| | | #endif |
| | | RealStatePtr L = luaEnv.rawL; |
| | | int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); |
| | | |
| | | LuaAPI.lua_pushstring(L, p0); |
| | | |
| | | PCall(L, 1, 0, errFunc); |
| | | |
| | | |
| | | |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp6(double p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | | { |
| | | #endif |
| | | RealStatePtr L = luaEnv.rawL; |
| | | int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); |
| | | |
| | | LuaAPI.lua_pushnumber(L, p0); |
| | | |
| | | PCall(L, 1, 0, errFunc); |
| | | |
| | | |
| | | |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.TestModel __Gen_Delegate_Imp7(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | | { |
| | | #endif |
| | | RealStatePtr L = luaEnv.rawL; |
| | | int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); |
| | | ObjectTranslator translator = luaEnv.translator; |
| | | translator.PushAny(L, p0); |
| | | |
| | | LuaAPI.lua_getref(L, luaReference); |
| | | PCall(L, 1, 1, errFunc); |
| | | |
| | | |
| | | Snxxz.UI.TestModel __gen_ret = (Snxxz.UI.TestModel)translator.GetObject(L, errFunc + 1, typeof(Snxxz.UI.TestModel)); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp8(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | | { |
| | | #endif |
| | | RealStatePtr L = luaEnv.rawL; |
| | | int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); |
| | | ObjectTranslator translator = luaEnv.translator; |
| | | translator.PushAny(L, p0); |
| | | |
| | | PCall(L, 1, 0, errFunc); |
| | | |
| | | |
| | | |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp9(object p0, object p1) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | | { |
| | | #endif |
| | | RealStatePtr L = luaEnv.rawL; |
| | | int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); |
| | | ObjectTranslator translator = luaEnv.translator; |
| | | translator.PushAny(L, p0); |
| | | translator.PushAny(L, p1); |
| | | |
| | | PCall(L, 2, 0, errFunc); |
| | | |
| | | |
| | | |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public bool __Gen_Delegate_Imp10(object p0, out int p1) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | | { |
| | | #endif |
| | | RealStatePtr L = luaEnv.rawL; |
| | | int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); |
| | | ObjectTranslator translator = luaEnv.translator; |
| | | translator.PushAny(L, p0); |
| | | |
| | | PCall(L, 1, 2, errFunc); |
| | | |
| | | p1 = LuaAPI.xlua_tointeger(L, errFunc + 2); |
| | | |
| | | bool __gen_ret = LuaAPI.lua_toboolean(L, errFunc + 1); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp11(object p0, int p1) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | | { |
| | | #endif |
| | | RealStatePtr L = luaEnv.rawL; |
| | | int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); |
| | | ObjectTranslator translator = luaEnv.translator; |
| | | translator.PushAny(L, p0); |
| | | LuaAPI.xlua_pushinteger(L, p1); |
| | | LuaAPI.xlua_pushinteger(L, p2); |
| | | |
| | | int __gen_error = LuaAPI.lua_pcall(L, 3, 0, err_func); |
| | | if (__gen_error != 0) |
| | | luaEnv.ThrowExceptionFromError(err_func - 1); |
| | | PCall(L, 2, 0, errFunc); |
| | | |
| | | |
| | | |
| | | LuaAPI.lua_settop(L, err_func - 1); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | |
| | | public override Delegate GetDelegateByType(Type type) |
| | | { |
| | | |
| | | if (type == typeof(InvokeLua.CalcNew)) |
| | | if (type == typeof(CSharpCallLua.LuaNetPackage)) |
| | | { |
| | | return new InvokeLua.CalcNew(__Gen_Delegate_Imp0); |
| | | return new CSharpCallLua.LuaNetPackage(__Gen_Delegate_Imp0); |
| | | } |
| | | |
| | | if (type == typeof(XLuaTest.IntParam)) |
| | | if (type == typeof(CSharpCallLua.CSharpNetPackage)) |
| | | { |
| | | return new XLuaTest.IntParam(__Gen_Delegate_Imp1); |
| | | return new CSharpCallLua.CSharpNetPackage(__Gen_Delegate_Imp1); |
| | | } |
| | | |
| | | if (type == typeof(XLuaTest.Vector3Param)) |
| | | if (type == typeof(CSharpCallLua.GeneralDelegate)) |
| | | { |
| | | return new XLuaTest.Vector3Param(__Gen_Delegate_Imp2); |
| | | return new CSharpCallLua.GeneralDelegate(__Gen_Delegate_Imp2); |
| | | } |
| | | |
| | | if (type == typeof(XLuaTest.CustomValueTypeParam)) |
| | | if (type == typeof(LuaBehaviour.generalDelegate)) |
| | | { |
| | | return new XLuaTest.CustomValueTypeParam(__Gen_Delegate_Imp3); |
| | | } |
| | | |
| | | if (type == typeof(XLuaTest.EnumParam)) |
| | | { |
| | | return new XLuaTest.EnumParam(__Gen_Delegate_Imp4); |
| | | } |
| | | |
| | | if (type == typeof(XLuaTest.DecimalParam)) |
| | | { |
| | | return new XLuaTest.DecimalParam(__Gen_Delegate_Imp5); |
| | | } |
| | | |
| | | if (type == typeof(XLuaTest.ArrayAccess)) |
| | | { |
| | | return new XLuaTest.ArrayAccess(__Gen_Delegate_Imp6); |
| | | return new LuaBehaviour.generalDelegate(__Gen_Delegate_Imp2); |
| | | } |
| | | |
| | | if (type == typeof(System.Action)) |
| | | { |
| | | return new System.Action(__Gen_Delegate_Imp7); |
| | | return new System.Action(__Gen_Delegate_Imp2); |
| | | } |
| | | |
| | | if (type == typeof(UnityEngine.Events.UnityAction)) |
| | | { |
| | | return new UnityEngine.Events.UnityAction(__Gen_Delegate_Imp7); |
| | | return new UnityEngine.Events.UnityAction(__Gen_Delegate_Imp2); |
| | | } |
| | | |
| | | if (type == typeof(System.Action<bool>)) |
| | | if (type == typeof(CSharpCallLua.boolReturnedValueDelegate)) |
| | | { |
| | | return new System.Action<bool>(__Gen_Delegate_Imp8); |
| | | } |
| | | |
| | | if (type == typeof(TestOutDelegate)) |
| | | { |
| | | return new TestOutDelegate(__Gen_Delegate_Imp9); |
| | | return new CSharpCallLua.boolReturnedValueDelegate(__Gen_Delegate_Imp3); |
| | | } |
| | | |
| | | if (type == typeof(System.Func<double, double, double>)) |
| | | { |
| | | return new System.Func<double, double, double>(__Gen_Delegate_Imp10); |
| | | return new System.Func<double, double, double>(__Gen_Delegate_Imp4); |
| | | } |
| | | |
| | | if (type == typeof(System.Action<string>)) |
| | | { |
| | | return new System.Action<string>(__Gen_Delegate_Imp11); |
| | | return new System.Action<string>(__Gen_Delegate_Imp5); |
| | | } |
| | | |
| | | if (type == typeof(System.Action<double>)) |
| | | { |
| | | return new System.Action<double>(__Gen_Delegate_Imp12); |
| | | } |
| | | |
| | | if (type == typeof(CSCallLua.FDelegate)) |
| | | { |
| | | return new CSCallLua.FDelegate(__Gen_Delegate_Imp13); |
| | | } |
| | | |
| | | if (type == typeof(CSCallLua.GetE)) |
| | | { |
| | | return new CSCallLua.GetE(__Gen_Delegate_Imp14); |
| | | return new System.Action<double>(__Gen_Delegate_Imp6); |
| | | } |
| | | |
| | | return null; |