Example #1
0
 static int set_onAction(IntPtr L)
 {
     try
     {
         InputUtil.OnAction arg0 = (InputUtil.OnAction)ToLua.CheckDelegate <InputUtil.OnAction>(L, 2);
         InputUtil.onAction = arg0;
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Example #2
0
 static int AddAction(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         InputUtil.OnAction arg0 = (InputUtil.OnAction)ToLua.CheckDelegate <InputUtil.OnAction>(L, 1);
         InputUtil.AddAction(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Example #3
0
    public InputUtil.OnAction InputUtil_OnAction(LuaFunction func, LuaTable self, bool flag)
    {
        if (func == null)
        {
            InputUtil.OnAction fn = delegate(int param0) { };
            return(fn);
        }

        if (!flag)
        {
            InputUtil_OnAction_Event target = new InputUtil_OnAction_Event(func);
            InputUtil.OnAction       d      = target.Call;
            target.method = d.Method;
            return(d);
        }
        else
        {
            InputUtil_OnAction_Event target = new InputUtil_OnAction_Event(func, self);
            InputUtil.OnAction       d      = target.CallWithSelf;
            target.method = d.Method;
            return(d);
        }
    }
Example #4
0
 void Push_InputUtil_OnAction(IntPtr L, InputUtil.OnAction o)
 {
     ToLua.Push(L, o);
 }