|
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 Placement components updated. More...
Public Member Functions | |
| PlacementUpdateReporter (std::weak_ptr< ECSWorld > world) | |
Static Public Member Functions | |
| static std::string | getSystemTypeName () |
Private Member Functions | |
| void | onEntityUpdated (EntityID entityID, ComponentType updatedComponent) override |
| Notifies scene system that a placement component in its world has been updated. | |
| void | clearReportList () |
| Called at the end of the transform update to clear report list in preparation for the next time step's updates. | |
Private Attributes | |
| std::set< EntityID > | mReportedEntities {} |
| Entities whose placement updates this system has reported. | |
Friends | |
| class | SceneSystem |
A subsystem of the SceneSystem which tracks, per world, which objects have had their Placement 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 Placement component, as seen in its base class.