|
inkcpp
|
Allows reading ink lists. More...
#include <InkList.h>
Public Member Functions | |
| bool | IsValid () const |
| Returns whether this list object still points to valid runner memory. | |
| bool | ContainsFlag (const FString &flag_name) const |
| Checks if a flag is contained (by name). | |
| bool | ContainsEnum (const UEnum *Enum, const uint8 &value) const |
| checks if flag with the same spelling then the enum value is set in the list | |
| TArray< uint8 > | ElementsOf (const UEnum *Enum) const |
| returns all values of a list with the same name as the enum | |
| TArray< FString > | ElementsOfAsString (const UEnum *Enum) const |
| returns all flag as string contained in the list from a list with the same name as the Enum | |
| TArray< FListFlag > | Elements () const |
| returns all list_name flag_name tuples | |
| bool | ContainsList (const FString &ListName) const |
| check if at least one value of the given list is included, OR the list is empty and associated with the list | |
Friends | |
| struct | FInkVar |
Allows reading ink lists.
A UInkList wraps a pointer into runner-owned memory. It is only valid until the runner advances (i.e. until the next getline() or choose()). After that IsValid() returns false and all accessor methods become no-ops that return empty/default values. Always check IsValid() before using a list that was not obtained in the same Blueprint event.
| bool UInkList::ContainsEnum | ( | const UEnum * | Enum, |
| const uint8 & | value ) const |
checks if flag with the same spelling then the enum value is set in the list
| true | if flag is contained in list |
| false | if the list is no longer valid |
| bool UInkList::ContainsFlag | ( | const FString & | flag_name | ) | const |
Checks if a flag is contained (by name).
| false | if the list is no longer valid |
| bool UInkList::ContainsList | ( | const FString & | ListName | ) | const |
check if at least one value of the given list is included, OR the list is empty and associated with the list
| false | if the list is no longer valid |
| TArray< FListFlag > UInkList::Elements | ( | ) | const |
returns all list_name flag_name tuples
| empty | array if the list is no longer valid |
| TArray< uint8 > UInkList::ElementsOf | ( | const UEnum * | Enum | ) | const |
returns all values of a list with the same name as the enum
| empty | array if the list is no longer valid |
| TArray< FString > UInkList::ElementsOfAsString | ( | const UEnum * | Enum | ) | const |
returns all flag as string contained in the list from a list with the same name as the Enum
| empty | array if the list is no longer valid |
|
inline |
Returns whether this list object still points to valid runner memory.
A list becomes invalid once the runner advances past the line or variable read that produced it. Do not call any other methods on an invalid list.