Ejemplo n.º 1
0
 static public int constructor(IntPtr l)
 {
     try {
                     #if DEBUG
         var    method     = System.Reflection.MethodBase.GetCurrentMethod();
         string methodName = GetMethodName(method);
                     #if UNITY_5_5_OR_NEWER
         UnityEngine.Profiling.Profiler.BeginSample(methodName);
                     #else
         Profiler.BeginSample(methodName);
                     #endif
                     #endif
         UnityEngine.EventSystems.EventTrigger.TriggerEvent o;
         o = new UnityEngine.EventSystems.EventTrigger.TriggerEvent();
         pushValue(l, true);
         pushValue(l, o);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
             #if DEBUG
     finally {
                     #if UNITY_5_5_OR_NEWER
         UnityEngine.Profiling.Profiler.EndSample();
                     #else
         Profiler.EndSample();
                     #endif
     }
             #endif
 }
 static public int constructor(IntPtr l)
 {
     UnityEngine.EventSystems.EventTrigger.TriggerEvent o;
     o = new UnityEngine.EventSystems.EventTrigger.TriggerEvent();
     pushObject(l, o);
     return(1);
 }
 static StackObject *AssignFromStack_callback_1(ref object o, ILIntepreter __intp, StackObject *ptr_of_this_method, IList <object> __mStack)
 {
     ILRuntime.Runtime.Enviorment.AppDomain             __domain  = __intp.AppDomain;
     UnityEngine.EventSystems.EventTrigger.TriggerEvent @callback = (UnityEngine.EventSystems.EventTrigger.TriggerEvent) typeof(UnityEngine.EventSystems.EventTrigger.TriggerEvent).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
     ((UnityEngine.EventSystems.EventTrigger.Entry)o).callback = @callback;
     return(ptr_of_this_method);
 }
Ejemplo n.º 4
0
 static public int constructor(IntPtr l)
 {
     try {
         UnityEngine.EventSystems.EventTrigger.TriggerEvent o;
         o = new UnityEngine.EventSystems.EventTrigger.TriggerEvent();
         pushValue(l, o);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int RemoveAllListeners(IntPtr l)
 {
     try {
         UnityEngine.EventSystems.EventTrigger.TriggerEvent self = (UnityEngine.EventSystems.EventTrigger.TriggerEvent)checkSelf(l);
         self.RemoveAllListeners();
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
	static public int constructor(IntPtr l) {
		try {
			UnityEngine.EventSystems.EventTrigger.TriggerEvent o;
			o=new UnityEngine.EventSystems.EventTrigger.TriggerEvent();
			pushValue(l,true);
			pushValue(l,o);
			return 2;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
 static new public int ToString(IntPtr l)
 {
     try {
         UnityEngine.EventSystems.EventTrigger.TriggerEvent self = (UnityEngine.EventSystems.EventTrigger.TriggerEvent)checkSelf(l);
         var ret = self.ToString();
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int constructor(IntPtr l)
 {
     try {
         UnityEngine.EventSystems.EventTrigger.TriggerEvent o;
         o = new UnityEngine.EventSystems.EventTrigger.TriggerEvent();
         pushValue(l, o);
         return(1);
     }
     catch (Exception e) {
         LuaDLL.luaL_error(l, e.ToString());
         return(0);
     }
 }
 public static int constructor(IntPtr l)
 {
     try {
         UnityEngine.EventSystems.EventTrigger.TriggerEvent o;
         o=new UnityEngine.EventSystems.EventTrigger.TriggerEvent();
         pushValue(l,o);
         return 1;
     }
     catch(Exception e) {
         LuaDLL.luaL_error(l, e.ToString());
         return 0;
     }
 }
Ejemplo n.º 10
0
 static public int constructor(IntPtr l)
 {
     LuaDLL.lua_remove(l, 1);
     UnityEngine.EventSystems.EventTrigger.TriggerEvent o;
     if (matchType(l, 1))
     {
         o = new UnityEngine.EventSystems.EventTrigger.TriggerEvent();
         pushObject(l, o);
         return(1);
     }
     LuaDLL.luaL_error(l, "New object failed.");
     return(0);
 }
 static public int GetPersistentEventCount(IntPtr l)
 {
     try {
         UnityEngine.EventSystems.EventTrigger.TriggerEvent self = (UnityEngine.EventSystems.EventTrigger.TriggerEvent)checkSelf(l);
         var ret = self.GetPersistentEventCount();
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int RemoveListener(IntPtr l)
 {
     try {
         UnityEngine.EventSystems.EventTrigger.TriggerEvent self = (UnityEngine.EventSystems.EventTrigger.TriggerEvent)checkSelf(l);
         UnityEngine.Events.UnityAction <UnityEngine.EventSystems.BaseEventData> a1;
         LuaDelegation.checkDelegate(l, 2, out a1);
         self.RemoveListener(a1);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int Invoke(IntPtr l)
 {
     try {
         UnityEngine.EventSystems.EventTrigger.TriggerEvent self = (UnityEngine.EventSystems.EventTrigger.TriggerEvent)checkSelf(l);
         UnityEngine.EventSystems.BaseEventData             a1;
         checkType(l, 2, out a1);
         self.Invoke(a1);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static new public int Equals(IntPtr l)
 {
     try {
         UnityEngine.EventSystems.EventTrigger.TriggerEvent self = (UnityEngine.EventSystems.EventTrigger.TriggerEvent)checkSelf(l);
         System.Object a1;
         checkType(l, 2, out a1);
         var ret = self.Equals(a1);
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int GetPersistentTarget(IntPtr l)
 {
     try {
         UnityEngine.EventSystems.EventTrigger.TriggerEvent self = (UnityEngine.EventSystems.EventTrigger.TriggerEvent)checkSelf(l);
         System.Int32 a1;
         checkType(l, 2, out a1);
         var ret = self.GetPersistentTarget(a1);
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int SetPersistentListenerState(IntPtr l)
 {
     try {
         UnityEngine.EventSystems.EventTrigger.TriggerEvent self = (UnityEngine.EventSystems.EventTrigger.TriggerEvent)checkSelf(l);
         System.Int32 a1;
         checkType(l, 2, out a1);
         UnityEngine.Events.UnityEventCallState a2;
         checkEnum(l, 3, out a2);
         self.SetPersistentListenerState(a1, a2);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
    static int get_callback(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UnityEngine.EventSystems.EventTrigger.Entry        obj = (UnityEngine.EventSystems.EventTrigger.Entry)o;
            UnityEngine.EventSystems.EventTrigger.TriggerEvent ret = obj.callback;
            ToLua.PushObject(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index callback on a nil value"));
        }
    }
    static int set_callback(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UnityEngine.EventSystems.EventTrigger.Entry        obj  = (UnityEngine.EventSystems.EventTrigger.Entry)o;
            UnityEngine.EventSystems.EventTrigger.TriggerEvent arg0 = (UnityEngine.EventSystems.EventTrigger.TriggerEvent)ToLua.CheckObject <UnityEngine.EventSystems.EventTrigger.TriggerEvent>(L, 2);
            obj.callback = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index callback on a nil value"));
        }
    }
Ejemplo n.º 19
0
        static int __CreateInstance(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    UnityEngine.EventSystems.EventTrigger.TriggerEvent __cl_gen_ret = new UnityEngine.EventSystems.EventTrigger.TriggerEvent();
                    translator.Push(L, __cl_gen_ret);

                    return(1);
                }
            }
            catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.EventSystems.EventTrigger.TriggerEvent constructor!"));
        }
Ejemplo n.º 20
0
        static StackObject *Add_1(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            UnityEngine.Events.UnityAction <UnityEngine.EventSystems.BaseEventData> @action = (UnityEngine.Events.UnityAction <UnityEngine.EventSystems.BaseEventData>) typeof(UnityEngine.Events.UnityAction <UnityEngine.EventSystems.BaseEventData>).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            UnityEngine.EventSystems.EventTrigger.TriggerEvent @triggerEvent = (UnityEngine.EventSystems.EventTrigger.TriggerEvent) typeof(UnityEngine.EventSystems.EventTrigger.TriggerEvent).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);


            ETModel.ActionHelper.Add(@triggerEvent, @action);

            return(__ret);
        }
    static int _CreateUnityEngine_EventSystems_EventTrigger_TriggerEvent(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 0)
            {
                UnityEngine.EventSystems.EventTrigger.TriggerEvent obj = new UnityEngine.EventSystems.EventTrigger.TriggerEvent();
                ToLua.PushObject(L, obj);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: UnityEngine.EventSystems.EventTrigger.TriggerEvent.New"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }