ToyMaker Game Engine 0.0.2
ToyMaker is a game engine developed and maintained by Zoheb Shujauddin.
Loading...
Searching...
No Matches
ToyMaker::SceneSystem::PlacementUpdateReporter Class Reference

A subsystem of the SceneSystem which tracks, per world, which objects have had their Placement components updated. More...

Inheritance diagram for ToyMaker::SceneSystem::PlacementUpdateReporter:
ToyMaker::System< PlacementUpdateReporter, std::tuple< Placement >, std::tuple< Transform, SceneHierarchyData > >

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< EntityIDmReportedEntities {}
 Entities whose placement updates this system has reported.

Friends

class SceneSystem

Detailed Description

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.


The documentation for this class was generated from the following files:
  • ToyMaker_Main/include/toymaker/engine/scene_system.hpp
  • ToyMaker_Main/src/scene_system.cpp