Navigation
API > API/Runtime > API/Runtime/AIModule
TCounter needs to supply following functions: default constructor typedef X Type; where X is an integer type to be used as ID's internal type TCounter::Type GetNextAvailableID() - returns next available ID and advances the internal counter uint32 GetSize() const - returns number of unique IDs created so far OnIndexForced(TCounter::Type Index) - called when given Index has been force-used. Counter may need to update "next available ID"
| Name | FAINamedID |
| Type | struct |
| Header File | /Engine/Source/Runtime/AIModule/Classes/AITypes.h |
| Include Path | #include "AITypes.h" |
Syntax
template<typename TCounter>
struct FAINamedID
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FAINamedID () |
AITypes.h | ||
FAINamedID
(
const FName& InName |
AITypes.h | ||
FAINamedID
(
const FAINamedID& Other |
AITypes.h | ||
FAINamedID
(
const FName& InName, |
Back-door for forcing IDs | AITypes.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| Counter | TCounter | AITypes.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Index | const TCounter::Type | AITypes.h | ||
| Name | const FName | AITypes.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool IsValid() |
AITypes.h |
Protected
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static TCounter & GetCounter() |
AITypes.h | ||
static uint32 GetSize() |
AITypes.h | ||
static FAINamedID< TCounter > InvalidID() |
AITypes.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
operator typename TCounter::Type() |
AITypes.h | ||
FAINamedID & operator=
(
const FAINamedID& Other |
AITypes.h |