Contents

class

SushiEngine::Simulation::BehaviorRegistry

Maps a ScriptComponent::type_name to the factory that constructs its native IEntityBehavior.

Declared in
engine/world/simulation/include/SushiEngine/simulation/entity_behavior.hpp

Populated by static self-registration (SE_REGISTER_BEHAVIOR), never by a call this codebase has to remember to make.

Public Methods

register_type

Registers type_name's factory.

create

Constructs a fresh instance of type_name, or nullptr if never registered.

registered_types

Returns every type name registered so far.

Static Methods

instance

The process-wide registry.

Public types

Factory