|
ToyMaker Game Engine 0.0.2
ToyMaker is a game engine developed and maintained by Zoheb Shujauddin.
|
A subsystem of the SceneSystem which tracks, per world, which objects have had their Transform components updated. More...
Public Member Functions | |
| TransformUpdateReporter (std::weak_ptr< ECSWorld > world) | |
Static Public Member Functions | |
| static std::string | getSystemTypeName () |
Private Member Functions | |
| void | onEntityUpdated (EntityID entityID, ComponentType updatedComponent) override |
| Notifies the scene system that an entity in its world has had its transform updated. | |
| void | clearReportList () |
| Called at the end of the placement update to clear report list in preparation for the next time step's updates. | |
Private Attributes | |
| std::set< EntityID > | mReportedEntities {} |
| Entities whose transform updates this system has reported. | |
Friends | |
| class | SceneSystem |
A subsystem of the SceneSystem which tracks, per world, which objects have had their Transform components updated.
These objects then have their UniversalEntityIDs sent to the SceneSystem, which schedules an update to their transforms as soon as possible.
This sub-system only listens for updates on an entity's Transform component, as seen in its base class.