|
3DRadSpace 0.1.0Alpha
3DRadSpace is a free, simple to use, rapid application development game engine.
|
Handles object and project loading/unloading. More...
#include <Serialization.hpp>
Public Member Functions | |
| Serializer ()=delete | |
| Static class. | |
Static Public Member Functions | |
| static json | SerializeObject (Objects::IObject *obj) |
| Serializes a object into JSON. | |
| static Objects::IObject * | DeserializeObject (const json &j) |
| Creates an object from JSON data. | |
| static bool | LoadProject (Objects::ObjectList *lst, Content::ContentManager *content, const std::filesystem::path &projectPath) |
| static Objects::IObject * | LoadObjectFromProject (const std::filesystem::path &path, unsigned id) |
| Loads a single object from a project file. Used when resetting objects. | |
| static bool | SaveProject (Objects::ObjectList *lst, Content::ContentManager *content, const std::filesystem::path &projectPath) |
| Saves all the objects and asset data into a 3DRSP file. | |
Handles object and project loading/unloading.
|
delete |
Static class.
|
staticnodiscard |
Creates an object from JSON data.
| j | JSON data, usually from a project file. |
|
staticnodiscard |
Loads a single object from a project file. Used when resetting objects.
| path | Path to project. |
| id | Object ID. |
|
static |
|
static |
Saves all the objects and asset data into a 3DRSP file.
| lst | Object list. |
| content | Content manager. |
| projectPath | File to save to. |
|
static |
Serializes a object into JSON.
| obj | Reference to an object. |