Class World¶
- Defined in File World.hpp
Class Documentation¶
-
class
World
¶ -
Public Functions
-
World
()¶ Constructor.
-
~World
()¶ Destructor.
-
void
SetUpdateType
(UpdateType type)¶
-
UpdateType
GetUpdateType
() const¶
-
void
Update
(float tick)¶ Updates the world
-
void
_AddToDestroyQueue
(Node *node)¶ internal use Node::Destroy() instead. Add a node to destroy queue
-
template <typename T>
voidsubscribe
(EventSubscriber<T> *subscriber)¶ Subscribe to an event.
-
template <typename T>
voidunsubscribe
(EventSubscriber<T> *subscriber)¶ Unsubscribe from an event.
-
void
unsubscribeAll
(void *subscriber)¶ Unsubscribe from all events. Don’t be afraid of the void pointer, just pass in your subscriber as normal.
-
template <typename T>
voidemit
(const T &event)¶ Emit an event. This will do nothing if there are no subscribers for the event type.
-
ftl::TaskScheduler *
GetTaskScheduler
() const¶
Protected Functions
-
void
CheckDestroyQueue
()¶
-