Class event_base

Inheritance Relationships

Derived Types

Class Documentation

class legion::core::events::event_base

Base class of all events for polymorphic storage.

Subclassed by legion::core::events::event< bulk_component_modification< component_type > >, legion::core::events::event< char_input >, legion::core::events::event< collision_event >, legion::core::events::event< component_creation< component_type > >, legion::core::events::event< component_destruction< component_type > >, legion::core::events::event< component_modification< component_type > >, legion::core::events::event< exit >, legion::core::events::event< explosion >, legion::core::events::event< extendedPhysicsContinue >, legion::core::events::event< key_input >, legion::core::events::event< largeExplosion >, legion::core::events::event< mediumExplosion >, legion::core::events::event< mouse_button >, legion::core::events::event< mouse_enter_window >, legion::core::events::event< mouse_moved >, legion::core::events::event< mouse_scrolled >, legion::core::events::event< nextPhysicsTimeStepContinue >, legion::core::events::event< parent_change >, legion::core::events::event< physics_split_test >, legion::core::events::event< smallExplosion >, legion::core::events::event< spawnEntity >, legion::core::events::event< T >, legion::core::events::event< trigger_event >, legion::core::events::event< window_close >, legion::core::events::event< window_content_rescale >, legion::core::events::event< window_focus >, legion::core::events::event< window_framebuffer_resize >, legion::core::events::event< window_iconified >, legion::core::events::event< window_item_dropped >, legion::core::events::event< window_maximized >, legion::core::events::event< window_move >, legion::core::events::event< window_refresh >, legion::core::events::event< window_resize >, legion::core::events::event< Self >

Public Functions

virtual bool persistent () LEGION_IMPURE_RETURN(false)

Returns a value that decides whether the event should be kept in the bus or destroyed after all subscribers have been notified.

virtual bool unique () LEGION_IMPURE_RETURN(true)

Returns a value that decides whether more than one of this event type should be able to exist. If true and an event of this type already exists then the event-bus will only notify the subscribers and nothing else.

virtual ~event_base() = default
virtual id_type get_id() = 0

Get’s the type id of an event. (only available in event_base)