Navigation
API > API/Plugins > API/Plugins/CommonConversationRuntime
References
| Module | CommonConversationRuntime |
| Header | /Engine/Plugins/Experimental/CommonConversation/Source/CommonConversationRuntime/Public/ConversationTypes.h |
| Include | #include "ConversationTypes.h" |
Syntax
USTRUCT&40;&41;
struct FConversationChoiceDataHandle
Remarks
Template<> struct TStructOpsTypeTraits
Variables
| Type | Name | Description | |
|---|---|---|---|
| TArray< TSharedPtr< FConversationChoiceData >, TInlineAllocator< 1 > > | Data | Raw storage of target data, do not modify this directly |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FConversationChoiceDataHandle
(
FConversationChoiceData* DataPtr |
|||
FConversationChoiceDataHandle
(
const FConversationChoiceDataHandle& Other |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Add
(
FConversationChoiceData* DataPtr |
Adds a new target data to handle, it must have been created with new | |
| void | Append
(
const FConversationChoiceDataHandle& OtherHandle |
Does a shallow copy of target data from one handle to another | |
| void | Clear () |
Resets handle to have no targets | |
| const FConversationChoiceData * | Get
(
int32 Index |
Returns data at index, or nullptr if invalid | |
| FConversationChoiceData * | Get
(
int32 Index |
Returns data at index, or nullptr if invalid | |
| bool | IsValid
(
int32 Index |
Returns true if there are any valid targets | |
| bool | NetSerialize
(
FArchive& Ar, |
Serialize for networking, handles polymorphism | |
| int32 | Num () |
Returns number of target data, not number of actors/targets as target data may contain multiple actors |
Operators
| Type | Name | Description | |
|---|---|---|---|
| bool | operator!=
(
const FConversationChoiceDataHandle& Other |
Comparison operator | |
| FConversationChoiceDataHandle & | operator=
(
FConversationChoiceDataHandle&& Other |
||
| FConversationChoiceDataHandle & | operator=
(
const FConversationChoiceDataHandle& Other |
||
| bool | operator==
(
const FConversationChoiceDataHandle& Other |
Comparison operator |