Class SceneSerializer#
Defined in File SceneSerializer.h
Class Documentation#
-
class SceneSerializer#
Public Functions
-
explicit SceneSerializer(Ref<Scene> scene) noexcept#
Constructor. Create a new scene serializer for the given scene.
- Parameters:
scene – Scene to serialize.
-
~SceneSerializer() = default#
Destructor.
-
consteval SceneSerializer(const SceneSerializer&) noexcept = delete#
Copy constructor.
-
consteval SceneSerializer &operator=(const SceneSerializer&) noexcept = delete#
Copy assignment operator.
-
SceneSerializer(SceneSerializer&&) noexcept = default#
Move constructor.
-
SceneSerializer &operator=(SceneSerializer&&) noexcept = default#
Move assignment operator.
-
void Serialize(const std::filesystem::path &filepath)#
Serialize the scene to the given filepath.
- Parameters:
filepath – File to save serialized scene at.
-
void SerializeRuntime(const std::filesystem::path &filepath)#
-
bool Deserialize(const std::filesystem::path &filepath)#
Deserialize the scene from the given filepath.
- Parameters:
filepath – File to load serialized scene from.
- Returns:
True on successful deserialization, false otherwise.
-
bool DeserializeRuntime(const std::filesystem::path &filepath)#
-
explicit SceneSerializer(Ref<Scene> scene) noexcept#