Exemplo 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.UI.ScrollRect.ScrollRectEvent o;
         o = new UnityEngine.UI.ScrollRect.ScrollRectEvent();
         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.UI.ScrollRect.ScrollRectEvent o;
     o = new UnityEngine.UI.ScrollRect.ScrollRectEvent();
     pushObject(l, o);
     return(1);
 }
 static public int RemoveAllListeners(IntPtr l)
 {
     try {
         UnityEngine.UI.ScrollRect.ScrollRectEvent self = (UnityEngine.UI.ScrollRect.ScrollRectEvent)checkSelf(l);
         self.RemoveAllListeners();
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Exemplo n.º 4
0
 static public int constructor(IntPtr l)
 {
     try {
         UnityEngine.UI.ScrollRect.ScrollRectEvent o;
         o = new UnityEngine.UI.ScrollRect.ScrollRectEvent();
         pushValue(l, o);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int GetPersistentEventCount(IntPtr l)
 {
     try {
         UnityEngine.UI.ScrollRect.ScrollRectEvent self = (UnityEngine.UI.ScrollRect.ScrollRectEvent)checkSelf(l);
         var ret = self.GetPersistentEventCount();
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static new public int ToString(IntPtr l)
 {
     try {
         UnityEngine.UI.ScrollRect.ScrollRectEvent self = (UnityEngine.UI.ScrollRect.ScrollRectEvent)checkSelf(l);
         var ret = self.ToString();
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 public static int constructor(IntPtr l)
 {
     try {
         UnityEngine.UI.ScrollRect.ScrollRectEvent o;
         o=new UnityEngine.UI.ScrollRect.ScrollRectEvent();
         pushValue(l,o);
         return 1;
     }
     catch(Exception e) {
         LuaDLL.luaL_error(l, e.ToString());
         return 0;
     }
 }
 public static int constructor(IntPtr l)
 {
     try {
         UnityEngine.UI.ScrollRect.ScrollRectEvent o;
         o=new UnityEngine.UI.ScrollRect.ScrollRectEvent();
         pushValue(l,true);
         pushValue(l,o);
         return 2;
     }
     catch(Exception e) {
         return error(l,e);
     }
 }
Exemplo n.º 9
0
 static public int constructor(IntPtr l)
 {
     try {
         UnityEngine.UI.ScrollRect.ScrollRectEvent o;
         o = new UnityEngine.UI.ScrollRect.ScrollRectEvent();
         pushValue(l, o);
         return(1);
     }
     catch (Exception e) {
         LuaDLL.luaL_error(l, e.ToString());
         return(0);
     }
 }
 static public int constructor(IntPtr l)
 {
     LuaDLL.lua_remove(l, 1);
     UnityEngine.UI.ScrollRect.ScrollRectEvent o;
     if (matchType(l, 1))
     {
         o = new UnityEngine.UI.ScrollRect.ScrollRectEvent();
         pushObject(l, o);
         return(1);
     }
     LuaDLL.luaL_error(l, "New object failed.");
     return(0);
 }
 static public int Invoke(IntPtr l)
 {
     try {
         UnityEngine.UI.ScrollRect.ScrollRectEvent self = (UnityEngine.UI.ScrollRect.ScrollRectEvent)checkSelf(l);
         UnityEngine.Vector2 a1;
         checkType(l, 2, out a1);
         self.Invoke(a1);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int RemoveListener(IntPtr l)
 {
     try {
         UnityEngine.UI.ScrollRect.ScrollRectEvent            self = (UnityEngine.UI.ScrollRect.ScrollRectEvent)checkSelf(l);
         UnityEngine.Events.UnityAction <UnityEngine.Vector2> a1;
         LuaDelegation.checkDelegate(l, 2, out a1);
         self.RemoveListener(a1);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
        int __CreateInstanceUnityEngineUIScrollRectScrollRectEvent(RealStatePtr L, int gen_param_count)
        {
            ObjectTranslator translator = this;

            if (gen_param_count == 1)
            {
                UnityEngine.UI.ScrollRect.ScrollRectEvent gen_ret = new UnityEngine.UI.ScrollRect.ScrollRectEvent();
                translator.Push(L, gen_ret);

                return(1);
            }


            return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.UI.ScrollRect.ScrollRectEvent constructor!"));
        }
 static new public int Equals(IntPtr l)
 {
     try {
         UnityEngine.UI.ScrollRect.ScrollRectEvent self = (UnityEngine.UI.ScrollRect.ScrollRectEvent)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 int QPYX_set_onValueChanged_YXQP(IntPtr L_YXQP)
    {
        object QPYX_o_YXQP = null;

        try
        {
            QPYX_o_YXQP = ToLua.ToObject(L_YXQP, 1);                        UnityEngine.UI.ScrollRect QPYX_obj_YXQP = (UnityEngine.UI.ScrollRect)QPYX_o_YXQP;
            UnityEngine.UI.ScrollRect.ScrollRectEvent QPYX_arg0_YXQP = (UnityEngine.UI.ScrollRect.ScrollRectEvent)ToLua.CheckObject <UnityEngine.UI.ScrollRect.ScrollRectEvent>(L_YXQP, 2);
            QPYX_obj_YXQP.onValueChanged = QPYX_arg0_YXQP;
            return(0);
        }
        catch (Exception QPYX_e_YXQP)            {
            return(LuaDLL.toluaL_exception(L_YXQP, QPYX_e_YXQP, QPYX_o_YXQP, "attempt to index onValueChanged on a nil value"));
        }
    }
    static int QPYX_get_onValueChanged_YXQP(IntPtr L_YXQP)
    {
        object QPYX_o_YXQP = null;

        try
        {
            QPYX_o_YXQP = ToLua.ToObject(L_YXQP, 1);                        UnityEngine.UI.ScrollRect QPYX_obj_YXQP = (UnityEngine.UI.ScrollRect)QPYX_o_YXQP;
            UnityEngine.UI.ScrollRect.ScrollRectEvent QPYX_ret_YXQP = QPYX_obj_YXQP.onValueChanged;
            ToLua.PushObject(L_YXQP, QPYX_ret_YXQP);
            return(1);
        }
        catch (Exception QPYX_e_YXQP)            {
            return(LuaDLL.toluaL_exception(L_YXQP, QPYX_e_YXQP, QPYX_o_YXQP, "attempt to index onValueChanged on a nil value"));
        }
    }
 static public int GetPersistentTarget(IntPtr l)
 {
     try {
         UnityEngine.UI.ScrollRect.ScrollRectEvent self = (UnityEngine.UI.ScrollRect.ScrollRectEvent)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.UI.ScrollRect.ScrollRectEvent self = (UnityEngine.UI.ScrollRect.ScrollRectEvent)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_onValueChanged(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UnityEngine.UI.ScrollRect obj = (UnityEngine.UI.ScrollRect)o;
            UnityEngine.UI.ScrollRect.ScrollRectEvent ret = obj.onValueChanged;
            ToLua.PushObject(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index onValueChanged on a nil value"));
        }
    }
Exemplo n.º 20
0
        static int __CreateInstance(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    UnityEngine.UI.ScrollRect.ScrollRectEvent __cl_gen_ret = new UnityEngine.UI.ScrollRect.ScrollRectEvent();
                    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.UI.ScrollRect.ScrollRectEvent constructor!"));
        }
    static int set_onValueChanged(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UnityEngine.UI.ScrollRect obj = (UnityEngine.UI.ScrollRect)o;
            UnityEngine.UI.ScrollRect.ScrollRectEvent arg0 = (UnityEngine.UI.ScrollRect.ScrollRectEvent)ToLua.CheckObject <UnityEngine.UI.ScrollRect.ScrollRectEvent>(L, 2);
            obj.onValueChanged = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index onValueChanged on a nil value"));
        }
    }
 static int QPYX__CreateUnityEngine_UI_ScrollRect_ScrollRectEvent_YXQP(IntPtr L_YXQP)
 {
     try
     {
         int QPYX_count_YXQP = LuaDLL.lua_gettop(L_YXQP);
         if (QPYX_count_YXQP == 0)
         {
             UnityEngine.UI.ScrollRect.ScrollRectEvent QPYX_obj_YXQP = new UnityEngine.UI.ScrollRect.ScrollRectEvent();
             ToLua.PushObject(L_YXQP, QPYX_obj_YXQP);
             return(1);
         }
         else
         {
             return(LuaDLL.luaL_throw(L_YXQP, "invalid arguments to ctor method: UnityEngine.UI.ScrollRect.ScrollRectEvent.New"));
         }
     }
     catch (Exception e_YXQP)                {
         return(LuaDLL.toluaL_exception(L_YXQP, e_YXQP));
     }
 }
Exemplo n.º 23
0
    static int _CreateUnityEngine_UI_ScrollRect_ScrollRectEvent(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

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