#ifndef SERVER_SELECTION_HPP_
#define SERVER_SELECTION_HPP_

#include <string>

#include <Display/WidgetDisplay/WidgetDisplay.hpp>
#include <Utilities/ServerSessionTable.hpp>

/**
 * @brief Server selection display ("multiplayer" screen).
 */
class ServerSelection : public WidgetDisplay
{
private:
    std::vector<ServerSession> sessions;
    ServerSession selectedSession;
    uint64_t lastKnownGeneration;

public:
    ServerSelection();

    virtual void update() override;
};

#endif