Пример #1
0
    public static Delegate System_Comparison_int(LuaFunction func, LuaTable self, bool flag)
    {
        if (func == null)
        {
            System.Comparison <int> 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 <int>     d      = target.Call;
            target.method = d.Method;
            return(d);
        }
        else
        {
            System_Comparison_int_Event target = new System_Comparison_int_Event(func, self);
            System.Comparison <int>     d      = target.CallWithSelf;
            target.method = d.Method;
            return(d);
        }
    }
Пример #2
0
    public static Delegate System_Comparison_int(LuaFunction func, LuaTable self, bool flag)
    {
        if (func == null)
        {
            System.Comparison<int> 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<int> d = target.Call;
            target.method = d.Method;
            return d;
        }
        else
        {
            System_Comparison_int_Event target = new System_Comparison_int_Event(func, self);
            System.Comparison<int> d = target.CallWithSelf;
            target.method = d.Method;
            return d;
        }
    }