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

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

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

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

Friends

class SceneSystem

Detailed Description

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.


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