Exemplo n.º 1
0
    static int set_onMoveEnd(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            PgJoystick obj = (PgJoystick)o;
            PgJoystick.OnMoveEndHandler2 arg0 = (PgJoystick.OnMoveEndHandler2)ToLua.CheckDelegate <PgJoystick.OnMoveEndHandler2>(L, 2);
            obj.onMoveEnd = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index onMoveEnd on a nil value"));
        }
    }
Exemplo n.º 2
0
    static int get_onMoveEnd(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            PgJoystick obj = (PgJoystick)o;
            PgJoystick.OnMoveEndHandler2 ret = obj.onMoveEnd;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index onMoveEnd on a nil value"));
        }
    }