Module |
|
Header |
/Engine/Source/Runtime/AIModule/Classes/AITypes.h |
Include |
#include "AITypes.h" |
template<typename TCounter>
struct FAINamedID
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 | Description | |
---|---|---|
|
FAINamedID() |
|
|
FAINamedID ( |
|
|
FAINamedID ( |
|
|
FAINamedID ( |
Back-door for forcing IDs |
Name | Description | ||
---|---|---|---|
|
TCounter & |
GetCounter() |
|
|
GetSize() |
||
|
FAINamedID< ... |
InvalidID() |
|
|
IsValid() |
Name | Description | ||
---|---|---|---|
|
operator typename TCounter::Type() |
||
|
operator= ( |
Name |
Description |
---|---|
Counter |