Exemplo n.º 1
0
    public static int constructor(IntPtr l)
    {
        int result;

        try
        {
            LibClientStateMachine o = new LibClientStateMachine();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemplo n.º 2
0
    public static int SetStateCheck(IntPtr l)
    {
        int result;

        try
        {
            LibClientStateMachine libClientStateMachine = (LibClientStateMachine)LuaObject.checkSelf(l);
            int commingEvent;
            LuaObject.checkType(l, 2, out commingEvent);
            int newState;
            LuaObject.checkType(l, 3, out newState);
            bool testOnly;
            LuaObject.checkType(l, 4, out testOnly);
            int i = libClientStateMachine.SetStateCheck(commingEvent, newState, testOnly);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, i);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }