![]() |
Raven Engine v0.1
|
Handles serialization and deserialization of Project configurations. More...
#include <ProjectSerializer.h>
Public Member Functions | |
| ProjectSerializer (Ref< Project > project) | |
| Constructs a ProjectSerializer for the given Project. | |
| bool | Serialize (const std::filesystem::path &filepath) |
| Serializes the current Project configuration to a JSON file. | |
| bool | Deserialize (const std::filesystem::path &filepath) |
| Deserializes the Project configuration from a JSON file. | |
Handles serialization and deserialization of Project configurations.
This class manages saving and loading the Project's configuration to and from JSON files using the glaze serialization library.
Constructs a ProjectSerializer for the given Project.
| project | Reference-counted pointer to the Project instance. |
| bool Raven::ProjectSerializer::Deserialize | ( | const std::filesystem::path & | filepath | ) |
Deserializes the Project configuration from a JSON file.
| filepath | Filesystem path to the project file to load. |
| bool Raven::ProjectSerializer::Serialize | ( | const std::filesystem::path & | filepath | ) |
Serializes the current Project configuration to a JSON file.
| filepath | Filesystem path where the project file will be saved. |