41 [[nodiscard]]
bool encode(
const Fabric& fabric,
const std::string& base_path);
53 [[nodiscard]]
bool encode(
const Tapestry& tapestry,
const std::string& base_dir, nlohmann::json user_state = {});
58 [[nodiscard]]
const std::string&
last_error()
const {
return m_last_error; }
61 [[nodiscard]]
bool encode_fabric(
63 const std::string& base_path,
64 const std::unordered_set<const Expanse*>& tapestry_owned);
68 template <
typename Record>
69 static void fill_expanse(Record& record,
const Expanse& expanse);
A defined region of space with a containment test and crossing actions.
Orchestrates spatial indexing and scheduling for Nexus objects.
StateEncoder & operator=(const StateEncoder &)=delete
const std::string & last_error() const
Last error message, empty if no error.
StateEncoder & operator=(StateEncoder &&)=default
StateEncoder(const StateEncoder &)=delete
StateEncoder(StateEncoder &&)=default
Serializes Fabric state to an EXR texture and JSON schema.
Owner of one or more Fabrics and the shared state they rely on.