Navigation
API > API/Plugins > API/Plugins/CommonConversationRuntime
Used to store arbitrary structs of data in different contexts for a conversation. During a conversation an NPC may need to remember a choice or remember a randomly chosen thing. This memory store allows that across different contexts, such as for the duration of the conversation instance, or as memory on the NPC.
| Name | FConversationMemory |
| Type | class |
| Header File | /Engine/Plugins/Experimental/CommonConversation/Source/CommonConversationRuntime/Public/ConversationMemory.h |
| Include Path | #include "ConversationMemory.h" |
Syntax
class FConversationMemory : public FNoncopyable
Inheritance Hierarchy
- FNoncopyable → FConversationMemory
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FConversationMemory() |
ConversationMemory.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~FConversationMemory() |
ConversationMemory.h |
Classes
| Name | Remarks |
|---|---|
| FTaskMemoryAllocator |
Structs
| Name | Remarks |
|---|---|
| FConversationTaskMemoryKey |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| TaskMemory | TMap< FConversationTaskMemoryKey, void * > | ConversationMemory.h | ||
| TaskMemoryAllocator | FTaskMemoryAllocator | ConversationMemory.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TStructTaskMemory * GetTaskMemory
(
const UConversationTaskNode& Task |
NOTE: It is not valid for your memory struct to store a RAW UObject*, this data is not scanned for garbage collection. | ConversationMemory.h | |
void * GetTaskMemoryOfType
(
const UConversationTaskNode& Task, |
NOTE: It is not valid for your memory struct to store a RAW UObject*, this data is not scanned for garbage collection. | ConversationMemory.h |