Navigation
API > API/Plugins > API/Plugins/CommonConversationRuntime
Active conversation participants should have this component on them. It keeps track of what conversations they are participating in (typically no more than one)
| Name | UConversationParticipantComponent |
| Type | class |
| Header File | /Engine/Plugins/Experimental/CommonConversation/Source/CommonConversationRuntime/Public/ConversationParticipantComponent.h |
| Include Path | #include "ConversationParticipantComponent.h" |
Syntax
UCLASS (MinimalAPI, BlueprintType)
class UConversationParticipantComponent : public UActorComponent
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UActorComponent → UConversationParticipantComponent
Implements Interfaces
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UConversationParticipantComponent() |
ConversationParticipantComponent.h |
Classes
| Name | Remarks |
|---|---|
| FConversationStartedEvent | |
| FConversationStatusChangedEvent | Client and server notification of the conversation starting or ending. |
| FConversationTaskChoiceDataUpdatedEvent | |
| FConversationUpdatedEvent |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ConversationStarted | FConversationStartedEvent | ConversationParticipantComponent.h | ||
| ConversationStatusChanged | FConversationStatusChangedEvent | ConversationParticipantComponent.h | ||
| ConversationTaskChoiceDataUpdated | FConversationTaskChoiceDataUpdatedEvent | ConversationParticipantComponent.h | ||
| ConversationUpdated | FConversationUpdatedEvent | ConversationParticipantComponent.h |
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Auth_Conversations | TArray< TObjectPtr< UConversationInstance > > | ConversationParticipantComponent.h | ||
| Auth_CurrentConversation | TObjectPtr< UConversationInstance > | ConversationParticipantComponent.h | ||
| bIsFirstConversationUpdateBroadcasted | bool | ConversationParticipantComponent.h | ||
| ConversationsActive | int32 | ConversationParticipantComponent.h |
|
|
| LastMessage | FClientConversationMessagePayload | ConversationParticipantComponent.h | ||
| MessageIndex | int32 | ConversationParticipantComponent.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
int32 GetConversationsActive () |
The number of conversations active. | ConversationParticipantComponent.h | |
FConversationNodeHandle GetCurrentNodeHandle() |
ConversationParticipantComponent.h | ||
bool GetIsFirstConversationUpdateBroadcasted() |
ConversationParticipantComponent.h | ||
const FClientConversationMessagePayload & GetLastMessage() |
A cached version of the last conversation message payload data recieved. | ConversationParticipantComponent.h | |
const int32 GetLastMessageIndex() |
Gets the last message index recieved, this is just a monotomically increasing number each time we get a new message. | ConversationParticipantComponent.h | |
| ConversationParticipantComponent.h |
|
||
const FConversationParticipantEntry * GetParticipant
(
const FGameplayTag& ParticipantTag |
ConversationParticipantComponent.h | ||
AActor * GetParticipantActor
(
const FGameplayTag& ParticipantTag |
ConversationParticipantComponent.h |
|
|
virtual FText GetParticipantDisplayName() |
ConversationParticipantComponent.h |
|
|
bool IsInActiveConversation() |
ConversationParticipantComponent.h |
|
|
void RequestServerAdvanceConversation
(
const FAdvanceConversationRequest& InChoicePicked |
ConversationParticipantComponent.h |
|
|
void SendClientConversationMessage
(
const FConversationContext& Context, |
ConversationParticipantComponent.h | ||
void SendClientRefreshedTaskChoiceData
(
const FConversationNodeHandle& Handle, |
ConversationParticipantComponent.h | ||
virtual void SendClientUpdatedChoices
(
const FConversationContext& Context, |
ConversationParticipantComponent.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void ClientExecuteTaskAndSideEffects
(
FConversationNodeHandle Handle, |
ConversationParticipantComponent.h |
|
|
void ClientExitConversation
(
const FConversationParticipants& InParticipants |
ConversationParticipantComponent.h |
|
|
void ClientStartConversation
(
const FConversationParticipants& InParticipants |
ConversationParticipantComponent.h |
|
|
void ClientUpdateConversation
(
const FClientConversationMessagePayload& Message |
ConversationParticipantComponent.h |
|
|
void ClientUpdateConversations
(
int32 InConversationsActive |
ConversationParticipantComponent.h |
|
|
void ClientUpdateConversationTaskChoiceData
(
FConversationNodeHandle Handle, |
ConversationParticipantComponent.h |
|
|
void ClientUpdateParticipants
(
const FConversationParticipants& InParticipants |
ConversationParticipantComponent.h |
|
|
virtual void OnClientExitConversation
(
const FConversationParticipants& InParticipants |
ConversationParticipantComponent.h | ||
virtual void OnClientStartConversation
(
const FConversationParticipants& InParticipants |
ConversationParticipantComponent.h | ||
virtual void OnConversationUpdated
(
const FClientConversationMessagePayload& Message |
ConversationParticipantComponent.h | ||
virtual void OnEnterConversationState() |
ConversationParticipantComponent.h | ||
virtual void OnLeaveConversationState() |
ConversationParticipantComponent.h | ||
void OnRep_ConversationsActive
(
int32 OldConversationsActive |
ConversationParticipantComponent.h | ||
void ServerAdvanceConversation
(
const FAdvanceConversationRequest& InChoicePicked |
ConversationParticipantComponent.h |
|