Navigation
API > API/Plugins > API/Plugins/WorldConditions
References
| Module | WorldConditions |
| Header | /Engine/Plugins/Runtime/WorldConditions/Source/WorldConditions/Public/WorldConditionQuery.h |
| Include | #include "WorldConditionQuery.h" |
Syntax
USTRUCT ()
struct FWorldConditionQueryState
Remarks
Runtime state of a world conditions. The structure of the data for the state is defined in a query definition. The definition and conditions are stored in FWorldConditionQueryDefinition. This allows to reuse the definitions and minimize the runtime memory needed to run queries.
Note: Any code embedding this struct is responsible for calling AddReferencedObjects().
Constructors
| Type | Name | Description | |
|---|---|---|---|
FWorldConditionQueryState
(
const FWorldConditionQueryState& Other |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddStructReferencedObjects
(
FReferenceCollector& Collector |
Adds referenced objects to the collector. | |
| bool | |||
| void | Free () |
Frees the allocated data and objects. | |
| EWorldConditionResultValue | |||
| FWorldConditionResultInvalidationHandle | GetInvalidationHandle
(
const FWorldConditionBase& Condition |
Returns handle that can be used to invalidate specific condition and recalculate the condition. | |
| FWorldConditionItem & | |||
| int32 | |||
| const UObject * | GetOwner () |
||
| const FWorldConditionQuerySharedDefinition * | |||
| UObject * | GetStateObject
(
const FWorldConditionBase& Condition |
||
| FStructView | GetStateStruct
(
const FWorldConditionBase& Condition |
||
| void | Initialize
(
const UObject& Owner, |
Initialized the state for a specific query definition. | |
| bool | |||
| void | SetCachedResult
(
const EWorldConditionResultValue InResult |
Sets the combined cached result of the query. | |
| void | SetConditionsActivated
(
const bool bConditionsActivated |
Sets the status of the conditions for this state. |
Operators
| Type | Name | Description | |
|---|---|---|---|
| FWorldConditionQueryState & | operator=
(
const FWorldConditionQueryState& RHS |
Constants
| Name | Description |
|---|---|
| CachedResultOffset | Offset in state memory where cached result is. |
| ItemsOffset | Offset in state memory where condition items are. |