Checks validity of FActorDefinition. More...
Public Member Functions | |
bool | AreValid (const TArray< FActorDefinition > &ActorDefinitions) |
Iterate all actor definitions and their properties and display messages on error. More... | |
bool | SingleIsValid (const FActorDefinition &Definition) |
Validate ActorDefinition and display messages on error. More... | |
Private Member Functions | |
bool | AreTagsValid (const FString &Tags) |
template<typename T > | |
bool | AreValid (const FString &Type, const TArray< T > &Array) |
Applies IsValid to each item in Array. More... | |
template<typename T , typename F > | |
bool | ForEach (const FString &Type, const TArray< T > &Array, F Validator) |
Applies Validator to each item in Array. More... | |
template<typename T > | |
FString | GetDisplayId (const FString &Type, size_t Index, const T &Item) |
FString | GetDisplayId (const FString &Type, size_t Index, const FString &Item) |
bool | IsIdValid (const FString &Id) |
bool | IsValid (const EActorAttributeType Type) |
bool | IsValid (const FActorVariation &Variation) |
bool | IsValid (const FActorAttribute &Attribute) |
bool | IsValid (const FActorDefinition &ActorDefinition) |
template<typename T , typename ... ARGS> | |
bool | OnScreenAssert (bool Predicate, const T &Format, ARGS &&... Args) const |
If Predicate is false, print an error message. More... | |
bool | ValueIsValid (const EActorAttributeType Type, const FString &Value) |
Private Attributes | |
FScopedStack< FString > | Stack |
Checks validity of FActorDefinition.
Definition at line 20 of file ActorBlueprintFunctionLibrary.cpp.
|
inlineprivate |
Definition at line 108 of file ActorBlueprintFunctionLibrary.cpp.
References OnScreenAssert().
Referenced by IsValid().
|
inline |
Iterate all actor definitions and their properties and display messages on error.
Definition at line 26 of file ActorBlueprintFunctionLibrary.cpp.
Referenced by UActorBlueprintFunctionLibrary::CheckActorDefinitions(), and IsValid().
|
inlineprivate |
Applies IsValid to each item in Array.
Pushes a new context to the stack for each item.
Definition at line 97 of file ActorBlueprintFunctionLibrary.cpp.
References ForEach(), and IsValid().
|
inlineprivate |
Applies Validator to each item in Array.
Pushes a new context to the stack for each item.
Definition at line 81 of file ActorBlueprintFunctionLibrary.cpp.
References GetDisplayId(), FScopedStack< T >::PushScope(), and Stack.
Referenced by AreValid(), and IsValid().
|
inlineprivate |
Definition at line 68 of file ActorBlueprintFunctionLibrary.cpp.
Referenced by ForEach().
|
inlineprivate |
Definition at line 73 of file ActorBlueprintFunctionLibrary.cpp.
|
inlineprivate |
Definition at line 102 of file ActorBlueprintFunctionLibrary.cpp.
References OnScreenAssert().
Referenced by IsValid().
|
inlineprivate |
Definition at line 114 of file ActorBlueprintFunctionLibrary.cpp.
References OnScreenAssert(), and PropAttributes::SIZE.
Referenced by AreValid(), IsValid(), and SingleIsValid().
|
inlineprivate |
Definition at line 126 of file ActorBlueprintFunctionLibrary.cpp.
References ForEach(), FActorVariation::Id, IsIdValid(), IsValid(), OnScreenAssert(), FActorVariation::RecommendedValues, FActorVariation::Type, and ValueIsValid().
|
inlineprivate |
Definition at line 137 of file ActorBlueprintFunctionLibrary.cpp.
References FActorAttribute::Id, IsIdValid(), IsValid(), FActorAttribute::Type, FActorAttribute::Value, and ValueIsValid().
|
inlineprivate |
Definition at line 145 of file ActorBlueprintFunctionLibrary.cpp.
References AreTagsValid(), AreValid(), FActorDefinition::Attributes, FActorDefinition::Id, IsIdValid(), FActorDefinition::Tags, and FActorDefinition::Variations.
|
inlineprivate |
If Predicate is false, print an error message.
If possible the message is printed to the editor window.
Definition at line 44 of file ActorBlueprintFunctionLibrary.cpp.
Referenced by AreTagsValid(), IsIdValid(), and IsValid().
|
inline |
Validate ActorDefinition and display messages on error.
Definition at line 32 of file ActorBlueprintFunctionLibrary.cpp.
References FActorDefinition::Id, IsValid(), FScopedStack< T >::PushScope(), and Stack.
Referenced by UActorBlueprintFunctionLibrary::CheckActorDefinition().
|
inlineprivate |
Definition at line 120 of file ActorBlueprintFunctionLibrary.cpp.
Referenced by IsValid().
|
private |
Definition at line 155 of file ActorBlueprintFunctionLibrary.cpp.
Referenced by ForEach(), OnScreenAssert(), and SingleIsValid().