Ejemplo n.º 1
0
    public System.Predicate <int> System_Predicate_int(LuaFunction func, LuaTable self, bool flag)
    {
        if (func == null)
        {
            System.Predicate <int> fn = delegate(int param0) { return(false); };
            return(fn);
        }

        if (!flag)
        {
            System_Predicate_int_Event target = new System_Predicate_int_Event(func);
            System.Predicate <int>     d      = target.Call;
            target.method = d.Method;
            return(d);
        }
        else
        {
            System_Predicate_int_Event target = new System_Predicate_int_Event(func, self);
            System.Predicate <int>     d      = target.CallWithSelf;
            target.method = d.Method;
            return(d);
        }
    }
Ejemplo n.º 2
0
    public static Delegate System_Predicate_int(LuaFunction func, LuaTable self, bool flag)
    {
        if (func == null)
        {
            System.Predicate<int> fn = delegate(int param0) { return false; };
            return fn;
        }

        if(!flag)
        {
            System_Predicate_int_Event target = new System_Predicate_int_Event(func);
            System.Predicate<int> d = target.Call;
            target.method = d.Method;
            return d;
        }
        else
        {
            System_Predicate_int_Event target = new System_Predicate_int_Event(func, self);
            System.Predicate<int> d = target.CallWithSelf;
            target.method = d.Method;
            return d;
        }
    }