Navigation
API > API/Runtime > API/Runtime/AIModule
References
| Module | AIModule |
| Header | /Engine/Source/Runtime/AIModule/Classes/AITypes.h |
| Include | #include "AITypes.h" |
Syntax
struct FAIResourceLock
Remarks
Structure used to define which subsystem requested locking of a specific AI resource (like movement, logic, etc.)
Constructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | ClearLock
(
EAIRequestPriority::Type LockPriority |
||
| void | Force-clears all locks | ||
| FString | |||
| bool | IsAvailableFor
(
EAIRequestPriority::Type LockPriority |
Answers the question if given priority is allowed to use this resource. | |
| bool | IsLocked () |
||
| bool | IsLockedBy
(
EAIRequestPriority::Type LockPriority |
||
| void | SetLock
(
EAIRequestPriority::Type LockPriority |
||
| void | SetUseResourceLockCount
(
bool inUseResourceLockCount |
Set whether we should use resource lock count. clears all existing locks. |
Operators
| Type | Name | Description | |
|---|---|---|---|
| void | operator+=
(
const FAIResourceLock& Other |
||
| bool | operator==
(
const FAIResourceLock& Other |
Typedefs
| Name | Description |
|---|---|
| FLockFlags | Feel free to change the type if you need to support more then 16 lock sources |