#ifndef WORLD_SEED_FIELD_HPP_
#define WORLD_SEED_FIELD_HPP_

#include <Widget/Layout/CompoundWidget/CompoundWidget.hpp>

/**
 * @brief A text field for entering the world seed, with a "randomize" button.
 */
class WorldSeedField : public CompoundWidget
{
public:
    /**
     * @brief Construct the world seed field.
     * 
     * @param text Reference to the value.
     * @param onAccept Function to call when ENTER is pressed.
     */
    WorldSeedField(std::string &text, std::function<void()> onAccept = [](){});
};

#endif