Navigation
API > API/Runtime > API/Runtime/AIModule
References
| Module | AIModule |
| Header | /Engine/Source/Runtime/AIModule/Classes/AITypes.h |
| Include | #include "AITypes.h" |
Syntax
template<typename TCounter>
struct FAINamedID
Remarks
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"
Variables
| Type | Name | Description | |
|---|---|---|---|
| const TCounter::Type | Index | ||
| const FName | Name |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FAINamedID () |
|||
FAINamedID
(
const FName& InName |
|||
FAINamedID
(
const FAINamedID& Other |
|||
FAINamedID
(
const FName& InName, |
Back-door for forcing IDs |
Functions
| Type | Name | Description | |
|---|---|---|---|
| TCounter & | GetCounter () |
||
| uint32 | GetSize () |
||
| FAINamedID< TCounter > | InvalidID () |
||
| bool | IsValid () |
Operators
| Type | Name | Description | |
|---|---|---|---|
| FAINamedID & | operator=
(
const FAINamedID& Other |
Constants
| Name | Description |
|---|---|
| Counter |