Navigation
API > API/Plugins > API/Plugins/WorldConditions
References
| Module | WorldConditions |
| Header | /Engine/Plugins/Runtime/WorldConditions/Source/WorldConditions/Public/WorldConditionContext.h |
| Include | #include "WorldConditionContext.h" |
Syntax
struct FWorldConditionContext
Remarks
The World Condition context is used to activate, update, and deactivate a world condition. It ties together the context data, query definition, and query state, and allows data access for the query conditions.
Variables
| Type | Name | Description | |
|---|---|---|---|
| const FWorldConditionContextData & | ContextData | Reference to the context data for the query to be updated. | |
| FWorldConditionQueryState & | QueryState | Reference to the query state of the query to be updated. | |
| UWorld * | World | World of the QueryState.Owner. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FWorldConditionContext
(
FWorldConditionQueryState& InQueryState, |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | Activate () |
Calls Activate() on the world conditions in the query. | |
| void | Deactivate () |
Calls Deactivate() on the world conditions in the query. | |
| T * | GetContextDataPtr
(
const FWorldConditionContextDataRef& Ref |
||
| EWorldConditionContextDataType | GetContextDataType
(
const FWorldConditionContextDataRef& Ref |
||
| FWorldConditionResultInvalidationHandle | GetInvalidationHandle
(
const FWorldConditionBase& Condition |
Returns handle that can be used to invalidate specific condition and recalculate the condition. | |
| const UObject * | GetOwner () |
||
| FWorldConditionQueryState & | |||
| const UWorldConditionSchema * | GetSchema () |
||
| T::FStateType & | GetState
(
const T& Condition |
||
| T::UStateType & | GetState
(
const T& Condition |
||
| UWorld * | GetWorld () |
||
| bool | IsTrue () |
Evaluates the result of the query. |