//this source code was auto-generated by tolua#, do not modify it using System; using System.Collections.Generic; using LuaInterface; public class DelegateFactory { public delegate Delegate DelegateCreate(LuaFunction func, LuaTable self, bool flag); public static Dictionary dict = new Dictionary(); static DelegateFactory factory = new DelegateFactory(); public static void Init() { Register(); } public static void Register() { dict.Clear(); dict.Add(typeof(System.Action), factory.System_Action); dict.Add(typeof(UnityEngine.Events.UnityAction), factory.UnityEngine_Events_UnityAction); dict.Add(typeof(System.Predicate), factory.System_Predicate_int); dict.Add(typeof(System.Action), factory.System_Action_int); dict.Add(typeof(System.Comparison), factory.System_Comparison_int); dict.Add(typeof(System.Func), factory.System_Func_int_int); dict.Add(typeof(UnityEngine.Camera.CameraCallback), factory.UnityEngine_Camera_CameraCallback); dict.Add(typeof(UnityEngine.Application.AdvertisingIdentifierCallback), factory.UnityEngine_Application_AdvertisingIdentifierCallback); dict.Add(typeof(UnityEngine.Application.LowMemoryCallback), factory.UnityEngine_Application_LowMemoryCallback); dict.Add(typeof(UnityEngine.Application.LogCallback), factory.UnityEngine_Application_LogCallback); dict.Add(typeof(System.Action), factory.System_Action_bool); dict.Add(typeof(System.Action), factory.System_Action_string); dict.Add(typeof(System.Func), factory.System_Func_bool); dict.Add(typeof(System.Action>), factory.System_Action_UnityEngine_PhysicsScene_Unity_Collections_NativeArray_UnityEngine_ModifiableContactPair); dict.Add(typeof(UnityEngine.AudioClip.PCMReaderCallback), factory.UnityEngine_AudioClip_PCMReaderCallback); dict.Add(typeof(UnityEngine.AudioClip.PCMSetPositionCallback), factory.UnityEngine_AudioClip_PCMSetPositionCallback); dict.Add(typeof(System.Action), factory.System_Action_UnityEngine_AsyncOperation); dict.Add(typeof(System.Action), factory.System_Action_string_System_Action); dict.Add(typeof(UnityEngine.UI.InputField.OnValidateInput), factory.UnityEngine_UI_InputField_OnValidateInput); dict.Add(typeof(UnityEngine.RectTransform.ReapplyDrivenProperties), factory.UnityEngine_RectTransform_ReapplyDrivenProperties); DelegateTraits.Init(factory.System_Action); DelegateTraits.Init(factory.UnityEngine_Events_UnityAction); DelegateTraits>.Init(factory.System_Predicate_int); DelegateTraits>.Init(factory.System_Action_int); DelegateTraits>.Init(factory.System_Comparison_int); DelegateTraits>.Init(factory.System_Func_int_int); DelegateTraits.Init(factory.UnityEngine_Camera_CameraCallback); DelegateTraits.Init(factory.UnityEngine_Application_AdvertisingIdentifierCallback); DelegateTraits.Init(factory.UnityEngine_Application_LowMemoryCallback); DelegateTraits.Init(factory.UnityEngine_Application_LogCallback); DelegateTraits>.Init(factory.System_Action_bool); DelegateTraits>.Init(factory.System_Action_string); DelegateTraits>.Init(factory.System_Func_bool); DelegateTraits>>.Init(factory.System_Action_UnityEngine_PhysicsScene_Unity_Collections_NativeArray_UnityEngine_ModifiableContactPair); DelegateTraits.Init(factory.UnityEngine_AudioClip_PCMReaderCallback); DelegateTraits.Init(factory.UnityEngine_AudioClip_PCMSetPositionCallback); DelegateTraits>.Init(factory.System_Action_UnityEngine_AsyncOperation); DelegateTraits>.Init(factory.System_Action_string_System_Action); DelegateTraits.Init(factory.UnityEngine_UI_InputField_OnValidateInput); DelegateTraits.Init(factory.UnityEngine_RectTransform_ReapplyDrivenProperties); TypeTraits.Init(factory.Check_System_Action); TypeTraits.Init(factory.Check_UnityEngine_Events_UnityAction); TypeTraits>.Init(factory.Check_System_Predicate_int); TypeTraits>.Init(factory.Check_System_Action_int); TypeTraits>.Init(factory.Check_System_Comparison_int); TypeTraits>.Init(factory.Check_System_Func_int_int); TypeTraits.Init(factory.Check_UnityEngine_Camera_CameraCallback); TypeTraits.Init(factory.Check_UnityEngine_Application_AdvertisingIdentifierCallback); TypeTraits.Init(factory.Check_UnityEngine_Application_LowMemoryCallback); TypeTraits.Init(factory.Check_UnityEngine_Application_LogCallback); TypeTraits>.Init(factory.Check_System_Action_bool); TypeTraits>.Init(factory.Check_System_Action_string); TypeTraits>.Init(factory.Check_System_Func_bool); TypeTraits>>.Init(factory.Check_System_Action_UnityEngine_PhysicsScene_Unity_Collections_NativeArray_UnityEngine_ModifiableContactPair); TypeTraits.Init(factory.Check_UnityEngine_AudioClip_PCMReaderCallback); TypeTraits.Init(factory.Check_UnityEngine_AudioClip_PCMSetPositionCallback); TypeTraits>.Init(factory.Check_System_Action_UnityEngine_AsyncOperation); TypeTraits>.Init(factory.Check_System_Action_string_System_Action); TypeTraits.Init(factory.Check_UnityEngine_UI_InputField_OnValidateInput); TypeTraits.Init(factory.Check_UnityEngine_RectTransform_ReapplyDrivenProperties); StackTraits.Push = factory.Push_System_Action; StackTraits.Push = factory.Push_UnityEngine_Events_UnityAction; StackTraits>.Push = factory.Push_System_Predicate_int; StackTraits>.Push = factory.Push_System_Action_int; StackTraits>.Push = factory.Push_System_Comparison_int; StackTraits>.Push = factory.Push_System_Func_int_int; StackTraits.Push = factory.Push_UnityEngine_Camera_CameraCallback; StackTraits.Push = factory.Push_UnityEngine_Application_AdvertisingIdentifierCallback; StackTraits.Push = factory.Push_UnityEngine_Application_LowMemoryCallback; StackTraits.Push = factory.Push_UnityEngine_Application_LogCallback; StackTraits>.Push = factory.Push_System_Action_bool; StackTraits>.Push = factory.Push_System_Action_string; StackTraits>.Push = factory.Push_System_Func_bool; StackTraits>>.Push = factory.Push_System_Action_UnityEngine_PhysicsScene_Unity_Collections_NativeArray_UnityEngine_ModifiableContactPair; StackTraits.Push = factory.Push_UnityEngine_AudioClip_PCMReaderCallback; StackTraits.Push = factory.Push_UnityEngine_AudioClip_PCMSetPositionCallback; StackTraits>.Push = factory.Push_System_Action_UnityEngine_AsyncOperation; StackTraits>.Push = factory.Push_System_Action_string_System_Action; StackTraits.Push = factory.Push_UnityEngine_UI_InputField_OnValidateInput; StackTraits.Push = factory.Push_UnityEngine_RectTransform_ReapplyDrivenProperties; } public static Delegate CreateDelegate(Type t, LuaFunction func = null) { DelegateCreate Create = null; if (!dict.TryGetValue(t, out Create)) { throw new LuaException(string.Format("Delegate {0} not register", LuaMisc.GetTypeName(t))); } if (func != null) { LuaState state = func.GetLuaState(); LuaDelegate target = state.GetLuaDelegate(func); if (target != null) { return Delegate.CreateDelegate(t, target, target.method); } else { Delegate d = Create(func, null, false); target = d.Target as LuaDelegate; state.AddLuaDelegate(target, func); return d; } } return Create(null, null, false); } public static Delegate CreateDelegate(Type t, LuaFunction func, LuaTable self) { DelegateCreate Create = null; if (!dict.TryGetValue(t, out Create)) { throw new LuaException(string.Format("Delegate {0} not register", LuaMisc.GetTypeName(t))); } if (func != null) { LuaState state = func.GetLuaState(); LuaDelegate target = state.GetLuaDelegate(func, self); if (target != null) { return Delegate.CreateDelegate(t, target, target.method); } else { Delegate d = Create(func, self, true); target = d.Target as LuaDelegate; state.AddLuaDelegate(target, func, self); return d; } } return Create(null, null, true); } public static Delegate RemoveDelegate(Delegate obj, LuaFunction func) { LuaState state = func.GetLuaState(); Delegate[] ds = obj.GetInvocationList(); for (int i = 0; i < ds.Length; i++) { LuaDelegate ld = ds[i].Target as LuaDelegate; if (ld != null && ld.func == func) { obj = Delegate.Remove(obj, ds[i]); state.DelayDispose(ld.func); break; } } return obj; } public static Delegate RemoveDelegate(Delegate obj, Delegate dg) { LuaDelegate remove = dg.Target as LuaDelegate; if (remove == null) { obj = Delegate.Remove(obj, dg); return obj; } LuaState state = remove.func.GetLuaState(); Delegate[] ds = obj.GetInvocationList(); for (int i = 0; i < ds.Length; i++) { LuaDelegate ld = ds[i].Target as LuaDelegate; if (ld != null && ld == remove) { obj = Delegate.Remove(obj, ds[i]); state.DelayDispose(ld.func); state.DelayDispose(ld.self); break; } } return obj; } class System_Action_Event : LuaDelegate { public System_Action_Event(LuaFunction func) : base(func) { } public System_Action_Event(LuaFunction func, LuaTable self) : base(func, self) { } public void Call() { func.Call(); } public void CallWithSelf() { func.BeginPCall(); func.Push(self); func.PCall(); func.EndPCall(); } } public System.Action System_Action(LuaFunction func, LuaTable self, bool flag) { if (func == null) { System.Action fn = delegate() { }; return fn; } if(!flag) { System_Action_Event target = new System_Action_Event(func); System.Action d = target.Call; target.method = d.Method; return d; } else { System_Action_Event target = new System_Action_Event(func, self); System.Action d = target.CallWithSelf; target.method = d.Method; return d; } } bool Check_System_Action(IntPtr L, int pos) { return TypeChecker.CheckDelegateType(typeof(System.Action), L, pos); } void Push_System_Action(IntPtr L, System.Action o) { ToLua.Push(L, o); } class UnityEngine_Events_UnityAction_Event : LuaDelegate { public UnityEngine_Events_UnityAction_Event(LuaFunction func) : base(func) { } public UnityEngine_Events_UnityAction_Event(LuaFunction func, LuaTable self) : base(func, self) { } public void Call() { func.Call(); } public void CallWithSelf() { func.BeginPCall(); func.Push(self); func.PCall(); func.EndPCall(); } } public UnityEngine.Events.UnityAction UnityEngine_Events_UnityAction(LuaFunction func, LuaTable self, bool flag) { if (func == null) { UnityEngine.Events.UnityAction fn = delegate() { }; return fn; } if(!flag) { UnityEngine_Events_UnityAction_Event target = new UnityEngine_Events_UnityAction_Event(func); UnityEngine.Events.UnityAction d = target.Call; target.method = d.Method; return d; } else { UnityEngine_Events_UnityAction_Event target = new UnityEngine_Events_UnityAction_Event(func, self); UnityEngine.Events.UnityAction d = target.CallWithSelf; target.method = d.Method; return d; } } bool Check_UnityEngine_Events_UnityAction(IntPtr L, int pos) { return TypeChecker.CheckDelegateType(typeof(UnityEngine.Events.UnityAction), L, pos); } void Push_UnityEngine_Events_UnityAction(IntPtr L, UnityEngine.Events.UnityAction o) { ToLua.Push(L, o); } class System_Predicate_int_Event : LuaDelegate { public System_Predicate_int_Event(LuaFunction func) : base(func) { } public System_Predicate_int_Event(LuaFunction func, LuaTable self) : base(func, self) { } public bool Call(int param0) { func.BeginPCall(); func.Push(param0); func.PCall(); bool ret = func.CheckBoolean(); func.EndPCall(); return ret; } public bool CallWithSelf(int param0) { func.BeginPCall(); func.Push(self); func.Push(param0); func.PCall(); bool ret = func.CheckBoolean(); func.EndPCall(); return ret; } } public System.Predicate System_Predicate_int(LuaFunction func, LuaTable self, bool flag) { if (func == null) { System.Predicate fn = delegate(int param0) { return false; }; return fn; } if(!flag) { System_Predicate_int_Event target = new System_Predicate_int_Event(func); System.Predicate d = target.Call; target.method = d.Method; return d; } else { System_Predicate_int_Event target = new System_Predicate_int_Event(func, self); System.Predicate d = target.CallWithSelf; target.method = d.Method; return d; } } bool Check_System_Predicate_int(IntPtr L, int pos) { return TypeChecker.CheckDelegateType(typeof(System.Predicate), L, pos); } void Push_System_Predicate_int(IntPtr L, System.Predicate o) { ToLua.Push(L, o); } class System_Action_int_Event : LuaDelegate { public System_Action_int_Event(LuaFunction func) : base(func) { } public System_Action_int_Event(LuaFunction func, LuaTable self) : base(func, self) { } public void Call(int param0) { func.BeginPCall(); func.Push(param0); func.PCall(); func.EndPCall(); } public void CallWithSelf(int param0) { func.BeginPCall(); func.Push(self); func.Push(param0); func.PCall(); func.EndPCall(); } } public System.Action System_Action_int(LuaFunction func, LuaTable self, bool flag) { if (func == null) { System.Action fn = delegate(int param0) { }; return fn; } if(!flag) { System_Action_int_Event target = new System_Action_int_Event(func); System.Action d = target.Call; target.method = d.Method; return d; } else { System_Action_int_Event target = new System_Action_int_Event(func, self); System.Action d = target.CallWithSelf; target.method = d.Method; return d; } } bool Check_System_Action_int(IntPtr L, int pos) { return TypeChecker.CheckDelegateType(typeof(System.Action), L, pos); } void Push_System_Action_int(IntPtr L, System.Action o) { ToLua.Push(L, o); } class System_Comparison_int_Event : LuaDelegate { public System_Comparison_int_Event(LuaFunction func) : base(func) { } public System_Comparison_int_Event(LuaFunction func, LuaTable self) : base(func, self) { } public int Call(int param0, int param1) { func.BeginPCall(); func.Push(param0); func.Push(param1); func.PCall(); int ret = (int)func.CheckNumber(); func.EndPCall(); return ret; } public int CallWithSelf(int param0, int param1) { func.BeginPCall(); func.Push(self); func.Push(param0); func.Push(param1); func.PCall(); int ret = (int)func.CheckNumber(); func.EndPCall(); return ret; } } public System.Comparison System_Comparison_int(LuaFunction func, LuaTable self, bool flag) { if (func == null) { System.Comparison fn = delegate(int param0, int param1) { return 0; }; return fn; } if(!flag) { System_Comparison_int_Event target = new System_Comparison_int_Event(func); System.Comparison d = target.Call; target.method = d.Method; return d; } else { System_Comparison_int_Event target = new System_Comparison_int_Event(func, self); System.Comparison d = target.CallWithSelf; target.method = d.Method; return d; } } bool Check_System_Comparison_int(IntPtr L, int pos) { return TypeChecker.CheckDelegateType(typeof(System.Comparison), L, pos); } void Push_System_Comparison_int(IntPtr L, System.Comparison o) { ToLua.Push(L, o); } class System_Func_int_int_Event : LuaDelegate { public System_Func_int_int_Event(LuaFunction func) : base(func) { } public System_Func_int_int_Event(LuaFunction func, LuaTable self) : base(func, self) { } public int Call(int param0) { func.BeginPCall(); func.Push(param0); func.PCall(); int ret = (int)func.CheckNumber(); func.EndPCall(); return ret; } public int CallWithSelf(int param0) { func.BeginPCall(); func.Push(self); func.Push(param0); func.PCall(); int ret = (int)func.CheckNumber(); func.EndPCall(); return ret; } } public System.Func System_Func_int_int(LuaFunction func, LuaTable self, bool flag) { if (func == null) { System.Func fn = delegate(int param0) { return 0; }; return fn; } if(!flag) { System_Func_int_int_Event target = new System_Func_int_int_Event(func); System.Func d = target.Call; target.method = d.Method; return d; } else { System_Func_int_int_Event target = new System_Func_int_int_Event(func, self); System.Func d = target.CallWithSelf; target.method = d.Method; return d; } } bool Check_System_Func_int_int(IntPtr L, int pos) { return TypeChecker.CheckDelegateType(typeof(System.Func), L, pos); } void Push_System_Func_int_int(IntPtr L, System.Func o) { ToLua.Push(L, o); } class UnityEngine_Camera_CameraCallback_Event : LuaDelegate { public UnityEngine_Camera_CameraCallback_Event(LuaFunction func) : base(func) { } public UnityEngine_Camera_CameraCallback_Event(LuaFunction func, LuaTable self) : base(func, self) { } public void Call(UnityEngine.Camera param0) { func.BeginPCall(); func.PushSealed(param0); func.PCall(); func.EndPCall(); } public void CallWithSelf(UnityEngine.Camera param0) { func.BeginPCall(); func.Push(self); func.PushSealed(param0); func.PCall(); func.EndPCall(); } } public UnityEngine.Camera.CameraCallback UnityEngine_Camera_CameraCallback(LuaFunction func, LuaTable self, bool flag) { if (func == null) { UnityEngine.Camera.CameraCallback fn = delegate(UnityEngine.Camera param0) { }; return fn; } if(!flag) { UnityEngine_Camera_CameraCallback_Event target = new UnityEngine_Camera_CameraCallback_Event(func); UnityEngine.Camera.CameraCallback d = target.Call; target.method = d.Method; return d; } else { UnityEngine_Camera_CameraCallback_Event target = new UnityEngine_Camera_CameraCallback_Event(func, self); UnityEngine.Camera.CameraCallback d = target.CallWithSelf; target.method = d.Method; return d; } } bool Check_UnityEngine_Camera_CameraCallback(IntPtr L, int pos) { return TypeChecker.CheckDelegateType(typeof(UnityEngine.Camera.CameraCallback), L, pos); } void Push_UnityEngine_Camera_CameraCallback(IntPtr L, UnityEngine.Camera.CameraCallback o) { ToLua.Push(L, o); } class UnityEngine_Application_AdvertisingIdentifierCallback_Event : LuaDelegate { public UnityEngine_Application_AdvertisingIdentifierCallback_Event(LuaFunction func) : base(func) { } public UnityEngine_Application_AdvertisingIdentifierCallback_Event(LuaFunction func, LuaTable self) : base(func, self) { } public void Call(string param0, bool param1, string param2) { func.BeginPCall(); func.Push(param0); func.Push(param1); func.Push(param2); func.PCall(); func.EndPCall(); } public void CallWithSelf(string param0, bool param1, string param2) { func.BeginPCall(); func.Push(self); func.Push(param0); func.Push(param1); func.Push(param2); func.PCall(); func.EndPCall(); } } public UnityEngine.Application.AdvertisingIdentifierCallback UnityEngine_Application_AdvertisingIdentifierCallback(LuaFunction func, LuaTable self, bool flag) { if (func == null) { UnityEngine.Application.AdvertisingIdentifierCallback fn = delegate(string param0, bool param1, string param2) { }; return fn; } if(!flag) { UnityEngine_Application_AdvertisingIdentifierCallback_Event target = new UnityEngine_Application_AdvertisingIdentifierCallback_Event(func); UnityEngine.Application.AdvertisingIdentifierCallback d = target.Call; target.method = d.Method; return d; } else { UnityEngine_Application_AdvertisingIdentifierCallback_Event target = new UnityEngine_Application_AdvertisingIdentifierCallback_Event(func, self); UnityEngine.Application.AdvertisingIdentifierCallback d = target.CallWithSelf; target.method = d.Method; return d; } } bool Check_UnityEngine_Application_AdvertisingIdentifierCallback(IntPtr L, int pos) { return TypeChecker.CheckDelegateType(typeof(UnityEngine.Application.AdvertisingIdentifierCallback), L, pos); } void Push_UnityEngine_Application_AdvertisingIdentifierCallback(IntPtr L, UnityEngine.Application.AdvertisingIdentifierCallback o) { ToLua.Push(L, o); } class UnityEngine_Application_LowMemoryCallback_Event : LuaDelegate { public UnityEngine_Application_LowMemoryCallback_Event(LuaFunction func) : base(func) { } public UnityEngine_Application_LowMemoryCallback_Event(LuaFunction func, LuaTable self) : base(func, self) { } public void Call() { func.Call(); } public void CallWithSelf() { func.BeginPCall(); func.Push(self); func.PCall(); func.EndPCall(); } } public UnityEngine.Application.LowMemoryCallback UnityEngine_Application_LowMemoryCallback(LuaFunction func, LuaTable self, bool flag) { if (func == null) { UnityEngine.Application.LowMemoryCallback fn = delegate() { }; return fn; } if(!flag) { UnityEngine_Application_LowMemoryCallback_Event target = new UnityEngine_Application_LowMemoryCallback_Event(func); UnityEngine.Application.LowMemoryCallback d = target.Call; target.method = d.Method; return d; } else { UnityEngine_Application_LowMemoryCallback_Event target = new UnityEngine_Application_LowMemoryCallback_Event(func, self); UnityEngine.Application.LowMemoryCallback d = target.CallWithSelf; target.method = d.Method; return d; } } bool Check_UnityEngine_Application_LowMemoryCallback(IntPtr L, int pos) { return TypeChecker.CheckDelegateType(typeof(UnityEngine.Application.LowMemoryCallback), L, pos); } void Push_UnityEngine_Application_LowMemoryCallback(IntPtr L, UnityEngine.Application.LowMemoryCallback o) { ToLua.Push(L, o); } class UnityEngine_Application_LogCallback_Event : LuaDelegate { public UnityEngine_Application_LogCallback_Event(LuaFunction func) : base(func) { } public UnityEngine_Application_LogCallback_Event(LuaFunction func, LuaTable self) : base(func, self) { } public void Call(string param0, string param1, UnityEngine.LogType param2) { func.BeginPCall(); func.Push(param0); func.Push(param1); func.Push(param2); func.PCall(); func.EndPCall(); } public void CallWithSelf(string param0, string param1, UnityEngine.LogType param2) { func.BeginPCall(); func.Push(self); func.Push(param0); func.Push(param1); func.Push(param2); func.PCall(); func.EndPCall(); } } public UnityEngine.Application.LogCallback UnityEngine_Application_LogCallback(LuaFunction func, LuaTable self, bool flag) { if (func == null) { UnityEngine.Application.LogCallback fn = delegate(string param0, string param1, UnityEngine.LogType param2) { }; return fn; } if(!flag) { UnityEngine_Application_LogCallback_Event target = new UnityEngine_Application_LogCallback_Event(func); UnityEngine.Application.LogCallback d = target.Call; target.method = d.Method; return d; } else { UnityEngine_Application_LogCallback_Event target = new UnityEngine_Application_LogCallback_Event(func, self); UnityEngine.Application.LogCallback d = target.CallWithSelf; target.method = d.Method; return d; } } bool Check_UnityEngine_Application_LogCallback(IntPtr L, int pos) { return TypeChecker.CheckDelegateType(typeof(UnityEngine.Application.LogCallback), L, pos); } void Push_UnityEngine_Application_LogCallback(IntPtr L, UnityEngine.Application.LogCallback o) { ToLua.Push(L, o); } class System_Action_bool_Event : LuaDelegate { public System_Action_bool_Event(LuaFunction func) : base(func) { } public System_Action_bool_Event(LuaFunction func, LuaTable self) : base(func, self) { } public void Call(bool param0) { func.BeginPCall(); func.Push(param0); func.PCall(); func.EndPCall(); } public void CallWithSelf(bool param0) { func.BeginPCall(); func.Push(self); func.Push(param0); func.PCall(); func.EndPCall(); } } public System.Action System_Action_bool(LuaFunction func, LuaTable self, bool flag) { if (func == null) { System.Action fn = delegate(bool param0) { }; return fn; } if(!flag) { System_Action_bool_Event target = new System_Action_bool_Event(func); System.Action d = target.Call; target.method = d.Method; return d; } else { System_Action_bool_Event target = new System_Action_bool_Event(func, self); System.Action d = target.CallWithSelf; target.method = d.Method; return d; } } bool Check_System_Action_bool(IntPtr L, int pos) { return TypeChecker.CheckDelegateType(typeof(System.Action), L, pos); } void Push_System_Action_bool(IntPtr L, System.Action o) { ToLua.Push(L, o); } class System_Action_string_Event : LuaDelegate { public System_Action_string_Event(LuaFunction func) : base(func) { } public System_Action_string_Event(LuaFunction func, LuaTable self) : base(func, self) { } public void Call(string param0) { func.BeginPCall(); func.Push(param0); func.PCall(); func.EndPCall(); } public void CallWithSelf(string param0) { func.BeginPCall(); func.Push(self); func.Push(param0); func.PCall(); func.EndPCall(); } } public System.Action System_Action_string(LuaFunction func, LuaTable self, bool flag) { if (func == null) { System.Action fn = delegate(string param0) { }; return fn; } if(!flag) { System_Action_string_Event target = new System_Action_string_Event(func); System.Action d = target.Call; target.method = d.Method; return d; } else { System_Action_string_Event target = new System_Action_string_Event(func, self); System.Action d = target.CallWithSelf; target.method = d.Method; return d; } } bool Check_System_Action_string(IntPtr L, int pos) { return TypeChecker.CheckDelegateType(typeof(System.Action), L, pos); } void Push_System_Action_string(IntPtr L, System.Action o) { ToLua.Push(L, o); } class System_Func_bool_Event : LuaDelegate { public System_Func_bool_Event(LuaFunction func) : base(func) { } public System_Func_bool_Event(LuaFunction func, LuaTable self) : base(func, self) { } public bool Call() { func.BeginPCall(); func.PCall(); bool ret = func.CheckBoolean(); func.EndPCall(); return ret; } public bool CallWithSelf() { func.BeginPCall(); func.Push(self); func.PCall(); bool ret = func.CheckBoolean(); func.EndPCall(); return ret; } } public System.Func System_Func_bool(LuaFunction func, LuaTable self, bool flag) { if (func == null) { System.Func fn = delegate() { return false; }; return fn; } if(!flag) { System_Func_bool_Event target = new System_Func_bool_Event(func); System.Func d = target.Call; target.method = d.Method; return d; } else { System_Func_bool_Event target = new System_Func_bool_Event(func, self); System.Func d = target.CallWithSelf; target.method = d.Method; return d; } } bool Check_System_Func_bool(IntPtr L, int pos) { return TypeChecker.CheckDelegateType(typeof(System.Func), L, pos); } void Push_System_Func_bool(IntPtr L, System.Func o) { ToLua.Push(L, o); } class System_Action_UnityEngine_PhysicsScene_Unity_Collections_NativeArray_UnityEngine_ModifiableContactPair_Event : LuaDelegate { public System_Action_UnityEngine_PhysicsScene_Unity_Collections_NativeArray_UnityEngine_ModifiableContactPair_Event(LuaFunction func) : base(func) { } public System_Action_UnityEngine_PhysicsScene_Unity_Collections_NativeArray_UnityEngine_ModifiableContactPair_Event(LuaFunction func, LuaTable self) : base(func, self) { } public void Call(UnityEngine.PhysicsScene param0, Unity.Collections.NativeArray param1) { func.BeginPCall(); func.PushValue(param0); func.PushValue(param1); func.PCall(); func.EndPCall(); } public void CallWithSelf(UnityEngine.PhysicsScene param0, Unity.Collections.NativeArray param1) { func.BeginPCall(); func.Push(self); func.PushValue(param0); func.PushValue(param1); func.PCall(); func.EndPCall(); } } public System.Action> System_Action_UnityEngine_PhysicsScene_Unity_Collections_NativeArray_UnityEngine_ModifiableContactPair(LuaFunction func, LuaTable self, bool flag) { if (func == null) { System.Action> fn = delegate(UnityEngine.PhysicsScene param0, Unity.Collections.NativeArray param1) { }; return fn; } if(!flag) { System_Action_UnityEngine_PhysicsScene_Unity_Collections_NativeArray_UnityEngine_ModifiableContactPair_Event target = new System_Action_UnityEngine_PhysicsScene_Unity_Collections_NativeArray_UnityEngine_ModifiableContactPair_Event(func); System.Action> d = target.Call; target.method = d.Method; return d; } else { System_Action_UnityEngine_PhysicsScene_Unity_Collections_NativeArray_UnityEngine_ModifiableContactPair_Event target = new System_Action_UnityEngine_PhysicsScene_Unity_Collections_NativeArray_UnityEngine_ModifiableContactPair_Event(func, self); System.Action> d = target.CallWithSelf; target.method = d.Method; return d; } } bool Check_System_Action_UnityEngine_PhysicsScene_Unity_Collections_NativeArray_UnityEngine_ModifiableContactPair(IntPtr L, int pos) { return TypeChecker.CheckDelegateType(typeof(System.Action>), L, pos); } void Push_System_Action_UnityEngine_PhysicsScene_Unity_Collections_NativeArray_UnityEngine_ModifiableContactPair(IntPtr L, System.Action> o) { ToLua.Push(L, o); } class UnityEngine_AudioClip_PCMReaderCallback_Event : LuaDelegate { public UnityEngine_AudioClip_PCMReaderCallback_Event(LuaFunction func) : base(func) { } public UnityEngine_AudioClip_PCMReaderCallback_Event(LuaFunction func, LuaTable self) : base(func, self) { } public void Call(float[] param0) { func.BeginPCall(); func.Push(param0); func.PCall(); func.EndPCall(); } public void CallWithSelf(float[] param0) { func.BeginPCall(); func.Push(self); func.Push(param0); func.PCall(); func.EndPCall(); } } public UnityEngine.AudioClip.PCMReaderCallback UnityEngine_AudioClip_PCMReaderCallback(LuaFunction func, LuaTable self, bool flag) { if (func == null) { UnityEngine.AudioClip.PCMReaderCallback fn = delegate(float[] param0) { }; return fn; } if(!flag) { UnityEngine_AudioClip_PCMReaderCallback_Event target = new UnityEngine_AudioClip_PCMReaderCallback_Event(func); UnityEngine.AudioClip.PCMReaderCallback d = target.Call; target.method = d.Method; return d; } else { UnityEngine_AudioClip_PCMReaderCallback_Event target = new UnityEngine_AudioClip_PCMReaderCallback_Event(func, self); UnityEngine.AudioClip.PCMReaderCallback d = target.CallWithSelf; target.method = d.Method; return d; } } bool Check_UnityEngine_AudioClip_PCMReaderCallback(IntPtr L, int pos) { return TypeChecker.CheckDelegateType(typeof(UnityEngine.AudioClip.PCMReaderCallback), L, pos); } void Push_UnityEngine_AudioClip_PCMReaderCallback(IntPtr L, UnityEngine.AudioClip.PCMReaderCallback o) { ToLua.Push(L, o); } class UnityEngine_AudioClip_PCMSetPositionCallback_Event : LuaDelegate { public UnityEngine_AudioClip_PCMSetPositionCallback_Event(LuaFunction func) : base(func) { } public UnityEngine_AudioClip_PCMSetPositionCallback_Event(LuaFunction func, LuaTable self) : base(func, self) { } public void Call(int param0) { func.BeginPCall(); func.Push(param0); func.PCall(); func.EndPCall(); } public void CallWithSelf(int param0) { func.BeginPCall(); func.Push(self); func.Push(param0); func.PCall(); func.EndPCall(); } } public UnityEngine.AudioClip.PCMSetPositionCallback UnityEngine_AudioClip_PCMSetPositionCallback(LuaFunction func, LuaTable self, bool flag) { if (func == null) { UnityEngine.AudioClip.PCMSetPositionCallback fn = delegate(int param0) { }; return fn; } if(!flag) { UnityEngine_AudioClip_PCMSetPositionCallback_Event target = new UnityEngine_AudioClip_PCMSetPositionCallback_Event(func); UnityEngine.AudioClip.PCMSetPositionCallback d = target.Call; target.method = d.Method; return d; } else { UnityEngine_AudioClip_PCMSetPositionCallback_Event target = new UnityEngine_AudioClip_PCMSetPositionCallback_Event(func, self); UnityEngine.AudioClip.PCMSetPositionCallback d = target.CallWithSelf; target.method = d.Method; return d; } } bool Check_UnityEngine_AudioClip_PCMSetPositionCallback(IntPtr L, int pos) { return TypeChecker.CheckDelegateType(typeof(UnityEngine.AudioClip.PCMSetPositionCallback), L, pos); } void Push_UnityEngine_AudioClip_PCMSetPositionCallback(IntPtr L, UnityEngine.AudioClip.PCMSetPositionCallback o) { ToLua.Push(L, o); } class System_Action_UnityEngine_AsyncOperation_Event : LuaDelegate { public System_Action_UnityEngine_AsyncOperation_Event(LuaFunction func) : base(func) { } public System_Action_UnityEngine_AsyncOperation_Event(LuaFunction func, LuaTable self) : base(func, self) { } public void Call(UnityEngine.AsyncOperation param0) { func.BeginPCall(); func.PushObject(param0); func.PCall(); func.EndPCall(); } public void CallWithSelf(UnityEngine.AsyncOperation param0) { func.BeginPCall(); func.Push(self); func.PushObject(param0); func.PCall(); func.EndPCall(); } } public System.Action System_Action_UnityEngine_AsyncOperation(LuaFunction func, LuaTable self, bool flag) { if (func == null) { System.Action fn = delegate(UnityEngine.AsyncOperation param0) { }; return fn; } if(!flag) { System_Action_UnityEngine_AsyncOperation_Event target = new System_Action_UnityEngine_AsyncOperation_Event(func); System.Action d = target.Call; target.method = d.Method; return d; } else { System_Action_UnityEngine_AsyncOperation_Event target = new System_Action_UnityEngine_AsyncOperation_Event(func, self); System.Action d = target.CallWithSelf; target.method = d.Method; return d; } } bool Check_System_Action_UnityEngine_AsyncOperation(IntPtr L, int pos) { return TypeChecker.CheckDelegateType(typeof(System.Action), L, pos); } void Push_System_Action_UnityEngine_AsyncOperation(IntPtr L, System.Action o) { ToLua.Push(L, o); } class System_Action_string_System_Action_Event : LuaDelegate { public System_Action_string_System_Action_Event(LuaFunction func) : base(func) { } public System_Action_string_System_Action_Event(LuaFunction func, LuaTable self) : base(func, self) { } public void Call(string param0, System.Action param1) { func.BeginPCall(); func.Push(param0); func.Push(param1); func.PCall(); func.EndPCall(); } public void CallWithSelf(string param0, System.Action param1) { func.BeginPCall(); func.Push(self); func.Push(param0); func.Push(param1); func.PCall(); func.EndPCall(); } } public System.Action System_Action_string_System_Action(LuaFunction func, LuaTable self, bool flag) { if (func == null) { System.Action fn = delegate(string param0, System.Action param1) { }; return fn; } if(!flag) { System_Action_string_System_Action_Event target = new System_Action_string_System_Action_Event(func); System.Action d = target.Call; target.method = d.Method; return d; } else { System_Action_string_System_Action_Event target = new System_Action_string_System_Action_Event(func, self); System.Action d = target.CallWithSelf; target.method = d.Method; return d; } } bool Check_System_Action_string_System_Action(IntPtr L, int pos) { return TypeChecker.CheckDelegateType(typeof(System.Action), L, pos); } void Push_System_Action_string_System_Action(IntPtr L, System.Action o) { ToLua.Push(L, o); } class UnityEngine_UI_InputField_OnValidateInput_Event : LuaDelegate { public UnityEngine_UI_InputField_OnValidateInput_Event(LuaFunction func) : base(func) { } public UnityEngine_UI_InputField_OnValidateInput_Event(LuaFunction func, LuaTable self) : base(func, self) { } public char Call(string param0, int param1, char param2) { func.BeginPCall(); func.Push(param0); func.Push(param1); func.Push(param2); func.PCall(); char ret = (char)func.CheckNumber(); func.EndPCall(); return ret; } public char CallWithSelf(string param0, int param1, char param2) { func.BeginPCall(); func.Push(self); func.Push(param0); func.Push(param1); func.Push(param2); func.PCall(); char ret = (char)func.CheckNumber(); func.EndPCall(); return ret; } } public UnityEngine.UI.InputField.OnValidateInput UnityEngine_UI_InputField_OnValidateInput(LuaFunction func, LuaTable self, bool flag) { if (func == null) { UnityEngine.UI.InputField.OnValidateInput fn = delegate(string param0, int param1, char param2) { return '\0'; }; return fn; } if(!flag) { UnityEngine_UI_InputField_OnValidateInput_Event target = new UnityEngine_UI_InputField_OnValidateInput_Event(func); UnityEngine.UI.InputField.OnValidateInput d = target.Call; target.method = d.Method; return d; } else { UnityEngine_UI_InputField_OnValidateInput_Event target = new UnityEngine_UI_InputField_OnValidateInput_Event(func, self); UnityEngine.UI.InputField.OnValidateInput d = target.CallWithSelf; target.method = d.Method; return d; } } bool Check_UnityEngine_UI_InputField_OnValidateInput(IntPtr L, int pos) { return TypeChecker.CheckDelegateType(typeof(UnityEngine.UI.InputField.OnValidateInput), L, pos); } void Push_UnityEngine_UI_InputField_OnValidateInput(IntPtr L, UnityEngine.UI.InputField.OnValidateInput o) { ToLua.Push(L, o); } class UnityEngine_RectTransform_ReapplyDrivenProperties_Event : LuaDelegate { public UnityEngine_RectTransform_ReapplyDrivenProperties_Event(LuaFunction func) : base(func) { } public UnityEngine_RectTransform_ReapplyDrivenProperties_Event(LuaFunction func, LuaTable self) : base(func, self) { } public void Call(UnityEngine.RectTransform param0) { func.BeginPCall(); func.PushSealed(param0); func.PCall(); func.EndPCall(); } public void CallWithSelf(UnityEngine.RectTransform param0) { func.BeginPCall(); func.Push(self); func.PushSealed(param0); func.PCall(); func.EndPCall(); } } public UnityEngine.RectTransform.ReapplyDrivenProperties UnityEngine_RectTransform_ReapplyDrivenProperties(LuaFunction func, LuaTable self, bool flag) { if (func == null) { UnityEngine.RectTransform.ReapplyDrivenProperties fn = delegate(UnityEngine.RectTransform param0) { }; return fn; } if(!flag) { UnityEngine_RectTransform_ReapplyDrivenProperties_Event target = new UnityEngine_RectTransform_ReapplyDrivenProperties_Event(func); UnityEngine.RectTransform.ReapplyDrivenProperties d = target.Call; target.method = d.Method; return d; } else { UnityEngine_RectTransform_ReapplyDrivenProperties_Event target = new UnityEngine_RectTransform_ReapplyDrivenProperties_Event(func, self); UnityEngine.RectTransform.ReapplyDrivenProperties d = target.CallWithSelf; target.method = d.Method; return d; } } bool Check_UnityEngine_RectTransform_ReapplyDrivenProperties(IntPtr L, int pos) { return TypeChecker.CheckDelegateType(typeof(UnityEngine.RectTransform.ReapplyDrivenProperties), L, pos); } void Push_UnityEngine_RectTransform_ReapplyDrivenProperties(IntPtr L, UnityEngine.RectTransform.ReapplyDrivenProperties o) { ToLua.Push(L, o); } }