internal static int checkDelegate(IntPtr l, int p, out UIPanel.OnGeometryUpdated ua)
        {
            int result = LuaObject.extractFunction(l, p);

            if (LuaDLL.pua_isnil(l, p))
            {
                ua = null;
                return(result);
            }
            if (LuaDLL.pua_isuserdata(l, p) == 1)
            {
                ua = (UIPanel.OnGeometryUpdated)LuaObject.checkObj(l, p);
                return(result);
            }
            LuaDelegate ld;

            LuaObject.checkType(l, -1, out ld);
            LuaDLL.pua_pop(l, 1);
            if (ld.d != null)
            {
                ua = (UIPanel.OnGeometryUpdated)ld.d;
                return(result);
            }
            l  = LuaState.get(l).L;
            ua = delegate
            {
                int num = LuaObject.pushTry(l);
                ld.pcall(0, num);
                LuaDLL.pua_settop(l, num - 1);
            };
            ld.d = ua;
            return(result);
        }
        static internal int checkDelegate(IntPtr l, int p, out UIPanel.OnGeometryUpdated ua)
        {
            int op = extractFunction(l, p);

            if (LuaDLL.lua_isnil(l, p))
            {
                ua = null;
                return(op);
            }
            else if (LuaDLL.lua_isuserdata(l, p) == 1)
            {
                ua = (UIPanel.OnGeometryUpdated)checkObj(l, p);
                return(op);
            }
            LuaDelegate ld;

            checkType(l, -1, out ld);
            LuaDLL.lua_pop(l, 1);
            if (ld.d != null)
            {
                ua = (UIPanel.OnGeometryUpdated)ld.d;
                return(op);
            }

            l  = LuaState.get(l).L;
            ua = () =>
            {
                int error = pushTry(l);

                ld.pcall(0, error);
                LuaDLL.lua_settop(l, error - 1);
            };
            ld.d = ua;
            return(op);
        }
 public static Delegate UIPanel_OnGeometryUpdated(LuaFunction func)
 {
     UIPanel.OnGeometryUpdated d = () =>
     {
         func.Call();
     };
     return(d);
 }
    public static Delegate UIPanel_OnGeometryUpdated(LuaFunction func)
    {
        if (func == null)
        {
            UIPanel.OnGeometryUpdated fn = delegate { };
            return(fn);
        }

        UIPanel.OnGeometryUpdated d = (new UIPanel_OnGeometryUpdated_Event(func)).Call;
        return(d);
    }
    static int get_onGeometryUpdated(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UIPanel obj = (UIPanel)o;
            UIPanel.OnGeometryUpdated ret = obj.onGeometryUpdated;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index onGeometryUpdated on a nil value"));
        }
    }
    static int set_onGeometryUpdated(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UIPanel obj = (UIPanel)o;
            UIPanel.OnGeometryUpdated arg0 = (UIPanel.OnGeometryUpdated)ToLua.CheckDelegate <UIPanel.OnGeometryUpdated>(L, 2);
            obj.onGeometryUpdated = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index onGeometryUpdated on a nil value"));
        }
    }
Beispiel #7
0
    public UIPanel.OnGeometryUpdated UIPanel_OnGeometryUpdated(LuaFunction func, LuaTable self, bool flag)
    {
        if (func == null)
        {
            UIPanel.OnGeometryUpdated fn = delegate() { };
            return(fn);
        }

        if (!flag)
        {
            UIPanel_OnGeometryUpdated_Event target = new UIPanel_OnGeometryUpdated_Event(func);
            UIPanel.OnGeometryUpdated       d      = target.Call;
            target.method = d.Method;
            return(d);
        }
        else
        {
            UIPanel_OnGeometryUpdated_Event target = new UIPanel_OnGeometryUpdated_Event(func, self);
            UIPanel.OnGeometryUpdated       d      = target.CallWithSelf;
            target.method = d.Method;
            return(d);
        }
    }
Beispiel #8
0
 void Push_UIPanel_OnGeometryUpdated(IntPtr L, UIPanel.OnGeometryUpdated o)
 {
     ToLua.Push(L, o);
 }