#ifndef WUNPACKCOMMAND_HPP_
#define WUNPACKCOMMAND_HPP_

#include <DevCommand/DevCommand.hpp>
#include <FileIO/FileIO.hpp>
#include <cstdint>

/**
 * @brief Command used to unpack a world file into a directory.
 */
class WUnpackCommand final : public DevCommand
{
private:
    static void unpackHashTable(FileIO &file, uint64_t pos, uint64_t size, const std::string &targetDir);

public:
    int execute(const std::vector<std::string> &args) override;
};

#endif