#include <Subscription.h>
|
| | Subscription (const std::string &directory, std::shared_ptr< EntityManager > entityManager, std::shared_ptr< unorMapCM > compManagers) |
| | Constructor of the Subscription class.
|
| |
| void | save (int entity) |
| | Let you save the subscription of an entity in a file, it will preserve the current values of the components, therefore it can be used as a saving system.
|
| |
◆ Subscription()
| Subscription::Subscription |
( |
const std::string & | directory, |
|
|
std::shared_ptr< EntityManager > | entityManager, |
|
|
std::shared_ptr< unorMapCM > | compManagers ) |
Constructor of the Subscription class.
- Warning
- The given subscriptions of the directory folders (and subfolders) should used Entities of the EntityManager and components of the given ComponentManagers, otherwise they will be ignored.
- Parameters
-
| directory | The root directory of the subscription's files. |
| entityManager | The environment EntityManager. |
| compManagers | The environment ComponentManagers. |
◆ save()
| void Subscription::save |
( |
int | entity | ) |
|
Let you save the subscription of an entity in a file, it will preserve the current values of the components, therefore it can be used as a saving system.
If the file is already present in the directory folder or its subfolders, it will be replaced, otherwise it will be created in the directory folder.
- Parameters
-
| entity | The ID of the entity to save. |
The documentation for this class was generated from the following file:
- C:/Users/thoma/GitProjects/TailorMade/TailorMade/include/Subscription.h