#pragma once
#include <vector>
#include <string>
#include <unordered_map>
#include "model/SceneryItem.h"

namespace MC {

class SceneryCatalog {
public:
    void LoadBuiltIn();

    const SceneryItem* Find(const std::string& id) const;
    const std::vector<SceneryItem>& All() const { return m_items; }
    bool IsLoaded() const { return m_loaded; }

private:
    std::vector<SceneryItem>                  m_items;
    std::unordered_map<std::string, size_t>   m_index;
    bool                                      m_loaded = false;
};

SceneryCatalog& GetSceneryCatalog();

} // namespace MC
