UCohtmlJSEvent
#include <CohtmlJSEvent.h>
Inherits from UObject
Public Classes
Name | |
---|---|
struct | FBoundArrayData |
struct | FBoundStructArg |
struct | FVariablePair |
Public Types
Name | |
---|---|
enum | EVariableType { VT_Int32, VT_Float, VT_Bool, VT_String, VT_Struct, VT_Object, VT_Array, VT_Count} |
Public Functions
Name | |
---|---|
void | AddByte(uint8 byte) |
void | AddInt32(int32 integer) |
void | AddString(const FString & str) |
void | AddName(const FName & name) |
void | AddText(const FText & text) |
void | AddFloat(float fl) |
void | AddBool(bool b) |
void | AddStructArg(const TFieldPath< FStructProperty > Arg) |
void | AddObject(UObject * object) |
void | AddArray(const TArray< int32 > & Array) |
void | AddArrayInternal(void * Array, EVariableType ArrayType) |
void | AddArrayOfStructsInternal(void * Array, UStruct * StructType) |
void | AddStructInternal(const COH_PROP(StructProperty) * PropertyType, void * ArgAddress) |
DECLARE_FUNCTION(execAddArray ) | |
DECLARE_FUNCTION(execAddStructArg ) | |
virtual void | BeginDestroy() |
~UCohtmlJSEvent() |
Public Attributes
Name | |
---|---|
TArray< int32 > | Ints |
TArray< FString > | Strings |
TArray< float > | Floats |
TArray< bool > | Bools |
TArray< TWeakObjectPtr< UObject > > | Objects |
TArray< FBoundStructArg > | StructArgs |
TArray< FBoundArrayData > | Arrays |
TArray< FVariablePair > | OrderedVariables |
TArray< const UStruct * > | StructTypes |
Detailed Description
class UCohtmlJSEvent;
The class represents an event triggered by the game that will be processed in the JavaScript of the View. Use this class to pass parameters to JavaScript.
Public Types Documentation
enum EVariableType
Enumerator | Value | Description |
---|---|---|
VT_Int32 | ||
VT_Float | ||
VT_Bool | ||
VT_String | ||
VT_Struct | ||
VT_Object | ||
VT_Array | ||
VT_Count |
Public Functions Documentation
function AddByte
void AddByte(
uint8 byte
)
Adds a Byte parameter to the event
function AddInt32
void AddInt32(
int32 integer
)
Adds an Integer parameter to the event
function AddString
void AddString(
const FString & str
)
Adds a String parameter to the event
function AddName
void AddName(
const FName & name
)
Adds a Name parameter to the event
function AddText
void AddText(
const FText & text
)
Adds a Text parameter to the event
function AddFloat
void AddFloat(
float fl
)
Adds a Float parameter to the event
function AddBool
void AddBool(
bool b
)
Adds a Boolean parameter to the event
function AddStructArg
void AddStructArg(
const TFieldPath< FStructProperty > Arg
)
Adds an instance of UStruct to the event
function AddObject
void AddObject(
UObject * object
)
Adds an Object parameter to the event
function AddArray
void AddArray(
const TArray< int32 > & Array
)
Adds an Array of a bindable type parameter to the event
function AddArrayInternal
void AddArrayInternal(
void * Array,
EVariableType ArrayType
)
Adds an TArray parameter to the event. Clients should never call directly this.
function AddArrayOfStructsInternal
void AddArrayOfStructsInternal(
void * Array,
UStruct * StructType
)
function AddStructInternal
void AddStructInternal(
const COH_PROP(StructProperty) * PropertyType,
void * ArgAddress
)
function DECLARE_FUNCTION
DECLARE_FUNCTION(
execAddArray
)
function DECLARE_FUNCTION
DECLARE_FUNCTION(
execAddStructArg
)
function BeginDestroy
virtual void BeginDestroy()
function ~UCohtmlJSEvent
~UCohtmlJSEvent()
Public Attributes Documentation
variable Ints
TArray< int32 > Ints;
variable Strings
TArray< FString > Strings;
variable Floats
TArray< float > Floats;
variable Bools
TArray< bool > Bools;
variable Objects
TArray< TWeakObjectPtr< UObject > > Objects;
variable StructArgs
TArray< FBoundStructArg > StructArgs;
variable Arrays
TArray< FBoundArrayData > Arrays;
variable OrderedVariables
TArray< FVariablePair > OrderedVariables;
variable StructTypes
TArray< const UStruct * > StructTypes;