Overhaul the handling of return values in LuaProbe
This commit is contained in:
@@ -149,11 +149,8 @@ public:
|
||||
static void LuaCallInvoke(UObject *context, AActor *Place);
|
||||
|
||||
UFUNCTION(BlueprintCallable, meta = (WorldContext = "context", ExpandBoolAsExecs="ReturnValue", BlueprintInternalUseOnly = "true"), Category = "Luprex|Call Lua Function")
|
||||
static bool LuaCallProbe(UObject *context, AActor *Place);
|
||||
static bool LuaCallProbe(UObject *context, AActor *Place, UlxLuaValues *&ReturnArray);
|
||||
|
||||
UFUNCTION(BlueprintCallable, meta = (WorldContext = "context", BlueprintInternalUseOnly = "true"), Category = "Luprex|Call Lua Function")
|
||||
static UlxLuaValues *LuaCallGetRest(UObject *context);
|
||||
|
||||
//
|
||||
// Functions that pack arguments into the call buffer.
|
||||
//
|
||||
@@ -178,31 +175,6 @@ public:
|
||||
|
||||
UFUNCTION(BlueprintCallable, meta = (WorldContext = "context", BlueprintInternalUseOnly = "true"), Category = "Luprex|Call Lua Function")
|
||||
static void LuaCallArgument_boolean(UObject *context, bool Value);
|
||||
|
||||
//
|
||||
// Functions that extract return values from the return buffer.
|
||||
//
|
||||
|
||||
UFUNCTION(BlueprintCallable, meta = (WorldContext = "context", BlueprintInternalUseOnly = "true"), Category = "Luprex|Call Lua Function")
|
||||
static FString LuaCallReturnValue_string(UObject *context);
|
||||
|
||||
UFUNCTION(BlueprintCallable, meta = (WorldContext = "context", BlueprintInternalUseOnly = "true"), Category = "Luprex|Call Lua Function")
|
||||
static FName LuaCallReturnValue_name(UObject *context);
|
||||
|
||||
UFUNCTION(BlueprintCallable, meta = (WorldContext = "context", BlueprintInternalUseOnly = "true"), Category = "Luprex|Call Lua Function")
|
||||
static double LuaCallReturnValue_float(UObject *context);
|
||||
|
||||
UFUNCTION(BlueprintCallable, meta = (WorldContext = "context", BlueprintInternalUseOnly = "true"), Category = "Luprex|Call Lua Function")
|
||||
static int LuaCallReturnValue_int(UObject *context);
|
||||
|
||||
UFUNCTION(BlueprintCallable, meta = (WorldContext = "context", BlueprintInternalUseOnly = "true"), Category = "Luprex|Call Lua Function")
|
||||
static FVector LuaCallReturnValue_vector(UObject *context);
|
||||
|
||||
UFUNCTION(BlueprintCallable, meta = (WorldContext = "context", BlueprintInternalUseOnly = "true"), Category = "Luprex|Call Lua Function")
|
||||
static FVector2D LuaCallReturnValue_vector2d(UObject *context);
|
||||
|
||||
UFUNCTION(BlueprintCallable, meta = (WorldContext = "context", BlueprintInternalUseOnly = "true"), Category = "Luprex|Call Lua Function")
|
||||
static bool LuaCallReturnValue_boolean(UObject *context);
|
||||
};
|
||||
|
||||
|
||||
@@ -253,6 +225,9 @@ public:
|
||||
//
|
||||
bool Initialize(std::string_view data);
|
||||
|
||||
UFUNCTION(BlueprintCallable, Category = "Luprex|Lua Value Array")
|
||||
void DiscardBeforeCursor();
|
||||
|
||||
UFUNCTION(BlueprintPure, Category = "Luprex|Lua Value Array")
|
||||
FString DebugString() const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user