InworldMessenger
Module: Inworld.AI. Namespace: Inworld.
This class is used to send/receive special interactive functions to/from Inworld server, via CustomPackets.
Properties
Properties | Parameters |
---|---|
NextTurn | Gets the signal of ask next character to respond in the chat group. |
GoalCompleteHead | Used to get rid of the message head and get the actual goal returned from server. |
API
Function | Description | Parameters |
---|---|---|
ProcessPacket | Process the packet returned from server and extract the message. | packet: The CustomPacket returned from server. |
EnableGoal | Send message to server to enable a goal (trigger) in Inworld. | goalName: the name of the goal(trigger) you'd like to enable. brainName: the full name of the InworldCharacter |
DisableGoal | Send message to server to disable a goal (trigger) in Inworld. | goalName: the name of the goal(trigger) you'd like to disable. brainName: the full name of the InworldCharacter |
DebugSendError | Manually ask Inworld server to send a normal error. | |
DebugSendCritical | Manually ask Inworld server to send a critical error and terminate the session. | |
DebugSendGoAway | Manually ask Inworld server to send a critical error and terminate the session and forbid future connection. | |
DebugSendIncompleteInteraction | Manually ask Inworld server to send error during the interaction. |