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

        try
        {
            TeamRoomViewNetTask teamRoomViewNetTask = (TeamRoomViewNetTask)LuaObject.checkSelf(l);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, teamRoomViewNetTask.TeamRooms);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemplo n.º 2
0
    public static int constructor(IntPtr l)
    {
        int result;

        try
        {
            GameFunctionType gameFunctionTypeId;
            LuaObject.checkEnum <GameFunctionType>(l, 2, out gameFunctionTypeId);
            int chapterId;
            LuaObject.checkType(l, 3, out chapterId);
            int locationId;
            LuaObject.checkType(l, 4, out locationId);
            TeamRoomViewNetTask o = new TeamRoomViewNetTask(gameFunctionTypeId, chapterId, locationId);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }