An object that can be used to write a GameScene to a YAML encoded file.
More...
#include <SceneSerializer.h>
|
std::string | sceneName |
| A string identifier for the stored scene, this will be written to the file.
|
|
An object that can be used to write a GameScene to a YAML encoded file.
- Author
- Thomas Montano
- Date
- February 1 2021
◆ SceneSerializer()
Default constructor to create a SceneSerializer.
- Parameters
-
scene | The scene that should be serialized. |
◆ deserialize()
void rune::SceneSerializer::deserialize |
( |
const std::string & |
filePath | ) |
|
Read the scene back in from a file.
- Parameters
-
filePath | The location of the YAML source file. |
◆ deserializeRuntime()
void rune::SceneSerializer::deserializeRuntime |
( |
const std::string & |
filePath | ) |
|
Read the scene back in from a binary file.
- Parameters
-
filePath | The location of the YAML source file. |
◆ serialize()
void rune::SceneSerializer::serialize |
( |
const std::string & |
filePath | ) |
|
Serialize the scene to a human readable file.
- Parameters
-
filePath | The location of the YAML source file. |
◆ serializeObject()
void rune::SceneSerializer::serializeObject |
( |
YAML::Emitter & |
out, |
|
|
rune::GameObject & |
object |
|
) |
| |
Serialize a GameObject to YAML.
- Parameters
-
out | The YAML buffer that is currently being written to. |
object | The GameObject that is going to be written to a file. |
◆ serializeRuntime()
void rune::SceneSerializer::serializeRuntime |
( |
const std::string & |
filePath | ) |
|
Serialize the scene to binary.
- Parameters
-
filePath | The location of the YAML source file. |
The documentation for this class was generated from the following files: