38 #if !defined(HUMMINGBIRD_UE4_419_SUPPORT) 42 #include <UObject/TextProperty.h> 44 #include "HummingbirdJSEvent.generated.h" 50 UCLASS(MinimalAPI, BlueprintType, Blueprintable, notplaceable)
53 GENERATED_UCLASS_BODY()
57 UFUNCTION(BlueprintCallable, Category =
"ViewScripting")
58 void AddByte(uint8 byte);
61 UFUNCTION(BlueprintCallable, Category =
"ViewScripting")
62 void AddInt32(int32 integer);
65 UFUNCTION(BlueprintCallable, Category =
"ViewScripting")
66 void AddString(
const FString& str);
69 UFUNCTION(BlueprintCallable, Category =
"ViewScripting")
70 void AddName(
const FName& name);
73 UFUNCTION(BlueprintCallable, Category =
"ViewScripting")
74 void AddText(
const FText& text);
77 UFUNCTION(BlueprintCallable, Category =
"ViewScripting")
78 void AddFloat(
float fl);
81 UFUNCTION(BlueprintCallable, Category =
"ViewScripting")
85 UFUNCTION(BlueprintCallable, CustomThunk, meta = (CustomStructureParam =
"Arg"), Category =
"ViewScripting")
86 void AddStructArg(
const UStructProperty* Arg);
89 UFUNCTION(BlueprintCallable, Category =
"ViewScripting")
90 void AddObject(UObject*
object);
93 UFUNCTION(BlueprintCallable, CustomThunk, meta = (ArrayParm =
"Array"), Category =
"ViewScripting")
94 void AddArray(
const TArray<int32>& Array);
110 void AddArrayInternal(
void* Array, EVariableType ArrayType);
111 void AddArrayOfStructsInternal(
void* Array, UStruct* StructType);
112 void AddStructInternal(
const UStructProperty* PropertyType,
void* ArgAddress);
115 TArray<FString> Strings;
116 TArray<float> Floats;
118 TArray<TWeakObjectPtr<UObject>> Objects;
120 struct FBoundStructArg
122 const UStruct* StructType;
125 TArray<FBoundStructArg> StructArgs;
127 struct FBoundArrayData
130 EVariableType VariableType;
136 , StructType(
nullptr)
139 TArray<FBoundArrayData> Arrays;
146 TArray<FVariablePair> OrderedVariables;
149 TArray<const UStruct*> StructTypes;
152 void AddGenericArray(
const UArrayProperty* ArrayProperty,
void* ArrayAddress);
153 void AddGenericStructArg(
const UStructProperty* PropertyType,
void* ArgAddress);
157 #if defined(HUMMINGBIRD_UE4_418_SUPPORT) 158 DECLARE_FUNCTION(execAddArray)
160 Stack.MostRecentProperty =
nullptr;
161 Stack.StepCompiledIn<UArrayProperty>(NULL);
162 void* ArrayAddress = Stack.MostRecentPropertyAddress;
163 UArrayProperty* ArrayProperty = Cast<UArrayProperty>(Stack.MostRecentProperty);
166 Stack.bArrayContextFailed =
true;
169 AddGenericArray(ArrayProperty, ArrayAddress);
173 DECLARE_FUNCTION(execAddStructArg)
175 Stack.MostRecentProperty =
nullptr;
176 Stack.StepCompiledIn<UStructProperty>(NULL);
177 void* ArgAddress = Stack.MostRecentPropertyAddress;
178 UStructProperty* Prop = ExactCast<UStructProperty>(Stack.MostRecentProperty);
179 AddGenericStructArg(Prop, ArgAddress);
184 DECLARE_FUNCTION(execAddArray);
185 DECLARE_FUNCTION(execAddStructArg);
188 virtual void BeginDestroy();
Definition: HummingbirdJSEvent.h:51