Module behavior_v0

Source

Structs§

IncomingMessage
An incoming message sent from the controller module
LocalBehaviorRegistration
Describes a behavior local to a behavior module
LocalModuleRegistration
Contains all registration info for an external behavior module
OutgoingMessage
An outgoing message that can be sent from a behavior instance to the controller module
OutgoingMessageAddr
An outgoing message’s address, targeting either an entire actor or a specific behavior

Constants§

CONTROLLER_SENTINEL_ACTOR_ID
Sentinel value indicating that a message is a system message, with open interpretation of what this entails, by the behavior module.
INCOMING_MESSAGE_NO_INSTANCE_SENTINEL
Sentinel value indicating that a system message has no instance tied to it.
INVALID_GUID_COMPONENT

Statics§

API
FFI API

Functions§

actors_with_aspect
Retrieve a list of all actors with the given aspect GUID
aspect_get
Retrieve a serialized representation of aspect data of the given actor and aspect guid if it exists
behavior__actors_with_aspect
Retrieve a list of all actors with the given aspect GUID
behavior__aspect_get
Retrieve a serialized representation of aspect data of the given actor and aspect guid if it exists
behavior__random_seed_value
A single 128-bit random value, unique to this run.
behavior__send_outgoing_messages
Batch send OutgoingMessages back to the controller module
random_seed_value
A single 128-bit random value, unique to this run.
send_outgoing_messages
Batch send OutgoingMessages back to the controller module

Type Aliases§

ActorId
ForeignBehaviorInstanceId
A unique id of a couple comprising a local behavior type id within a behavior module as well as an instance id
Guid
LocalBehaviorTypeId
A unique id local to a behavior module representing a behavior type