Contents

struct

SeAddonHost

Hands an add-on the engine services it may call, in a layout both sides agree on.

Declared in
engine/foundation/addon/include/SushiEngine/addon/addon_host.hpp

Members are appended, never moved. While the version is 0.x, any change to a member here, or to the virtual functions of any interface a pointer below points at, raises SE_ADDON_ABI_REVISION (abi_fingerprint.hpp), since the loader's fingerprint comparison refuses on inequality.

Properties

structure_size

Holds sizeof(SeAddonHost) as captured by the writer.

abi_revision

Holds SE_ADDON_ABI_REVISION as captured by the writer.

logger

Points at the logger the add-on writes through.

assertion_handler

Points at the assertion handler the add-on's own assertions report to.

event_bus

Points at the event bus the add-on publishes and subscribes on.

owner

Identifies the add-on as an EventBus::OwnerId when it subscribes or unsubscribes.

behavior_registry

Points at the registry the add-on registers its entity behaviours with.