Contents

Functions

sushiengine_addon_register

Message: the engine calls this function.

Declared in
engine/foundation/addon/sdk/include/SushiEngine/addon/addon_registration.hpp
void sushiengine_addon_register(const SeAddonHost &host)

Parameters

NameTypeDescription
hostconst SeAddonHost &

The table this add-on was accepted with; identical to Addon::host()'s return.

Description

Registers this add-on's behaviours and subscriptions; the add-on defines this function.

Precondition

SushiEngine::Addon::host() already returns host when this call runs.

Example

void sushiengine_addon_register(const SeAddonHost& host)
{
    host.behavior_registry->register_type(
        "SpinnerBehavior", &SushiEngine::Simulation::make_behavior<SpinnerBehavior>);
}