inkcpp
|
Helpful tag list. More...
#include <TagList.h>
Public Member Functions | |
bool | Has (const FString &tag) const |
Checks if the tag is present in the array. | |
bool | HasEnum (const UEnum *Enum, uint8 &value) const |
Check if tag list contains enum flag. | |
FString | GetValue (const FString &name) const |
Searches for a tag that begins with 'name:' and returns the string after the colon. | |
bool | GetEnum (const UEnum *Enum, uint8 &value) const |
Searches for a tag thats begins with 'EnumName:' and returns the enum value corresponding to the text after the ':'. | |
const TArray< FString > & | GetTags () const |
Get all tags as array. | |
Helpful tag list.
bool UTagList::GetEnum | ( | const UEnum * | Enum, |
uint8 & | value ) const |
Searches for a tag thats begins with 'EnumName:' and returns the enum value corresponding to the text after the ':'.
true | if a tag in the form "EnumName:FlagName" was found |
const TArray< FString > & UTagList::GetTags | ( | ) | const |
Get all tags as array.
FString UTagList::GetValue | ( | const FString & | name | ) | const |
Searches for a tag that begins with 'name:' and returns the string after the colon.
"" | if no value was found, or if there are nothing behind ':' |
bool UTagList::Has | ( | const FString & | tag | ) | const |
Checks if the tag is present in the array.
bool UTagList::HasEnum | ( | const UEnum * | Enum, |
uint8 & | value ) const |
Check if tag list contains enum flag.
Check if one of the enum flag string represntations is equal to one flag in the list.
Enum | the enum class to check flags from |
value | of the flag iff one was found |
true | if a flag was found |