UCohtmlJSEvent

More…

#include <CohtmlJSEvent.h>

Inherits from UObject

Public Classes

Name
structFBoundArrayData
structFBoundStructArg
structFVariablePair

Public Types

Name
enumEVariableType { VT_Int32, VT_Float, VT_Bool, VT_String, VT_Struct, VT_Object, VT_Array, VT_Count}

Public Functions

Name
voidAddByte(uint8 byte)
voidAddInt32(int32 integer)
voidAddString(const FString & str)
voidAddName(const FName & name)
voidAddText(const FText & text)
voidAddFloat(float fl)
voidAddBool(bool b)
voidAddStructArg(const TFieldPath< FStructProperty > Arg)
voidAddObject(UObject * object)
voidAddArray(const TArray< int32 > & Array)
voidAddArrayInternal(void * Array, EVariableType ArrayType)
voidAddArrayOfStructsInternal(void * Array, UStruct * StructType)
voidAddStructInternal(const COH_PROP(StructProperty) * PropertyType, void * ArgAddress)
DECLARE_FUNCTION(execAddArray )
DECLARE_FUNCTION(execAddStructArg )
virtual voidBeginDestroy()
~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

EnumeratorValueDescription
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;