UnrealModFramework
Mod framework API
Loading...
Searching...
No Matches
ModHostExtensionLibrary.h
Go to the documentation of this file.
1// Copyright (c) 2026 Nelaric Contributors
3#pragma once
4
5#include "Kismet/BlueprintFunctionLibrary.h"
6
7#include "ModHostExtensionLibrary.generated.h"
8
10UCLASS(MinimalAPI)
11class UModHostExtensionLibrary final : public UBlueprintFunctionLibrary
12{
13 GENERATED_BODY()
14
15public:
17 UFUNCTION(BlueprintCallable, meta = (BlueprintInternalUseOnly = "true", DefaultToSelf = "Source"))
18 static int32 HookPoint(UObject* Source, FName Id, float Value, float& Result, bool& bCancelled, bool& bCommitted);
19
21 UFUNCTION(BlueprintCallable, meta = (BlueprintInternalUseOnly = "true", DefaultToSelf = "Source"))
22 static int32 PublishEvent(UObject* Source, FName Id, float Value);
23
24public:
25 UFUNCTION(BlueprintCallable, meta = (BlueprintInternalUseOnly = "true", DefaultToSelf = "Source"))
26 static int32 HookPointDouble(UObject* Source, FName Id, double Value, double& Result, bool& bCancelled,
27 bool& bCommitted);
28 UFUNCTION(BlueprintCallable, meta = (BlueprintInternalUseOnly = "true", DefaultToSelf = "Source"))
29 static int32 PublishEventDouble(UObject* Source, FName Id, double Value);
30
31 UFUNCTION(BlueprintCallable, meta = (BlueprintInternalUseOnly = "true", DefaultToSelf = "Source"))
32 static int32 HookPointInt32(UObject* Source, FName Id, int32 Value, int32& Result, bool& bCancelled,
33 bool& bCommitted);
34 UFUNCTION(BlueprintCallable, meta = (BlueprintInternalUseOnly = "true", DefaultToSelf = "Source"))
35 static int32 PublishEventInt32(UObject* Source, FName Id, int32 Value);
36
37 UFUNCTION(BlueprintCallable, meta = (BlueprintInternalUseOnly = "true", DefaultToSelf = "Source"))
38 static int32 HookPointInt64(UObject* Source, FName Id, int64 Value, int64& Result, bool& bCancelled,
39 bool& bCommitted);
40 UFUNCTION(BlueprintCallable, meta = (BlueprintInternalUseOnly = "true", DefaultToSelf = "Source"))
41 static int32 PublishEventInt64(UObject* Source, FName Id, int64 Value);
42
43 UFUNCTION(BlueprintCallable, meta = (BlueprintInternalUseOnly = "true", DefaultToSelf = "Source"))
44 static int32 HookPointBool(UObject* Source, FName Id, bool Value, bool& Result, bool& bCancelled, bool& bCommitted);
45 UFUNCTION(BlueprintCallable, meta = (BlueprintInternalUseOnly = "true", DefaultToSelf = "Source"))
46 static int32 PublishEventBool(UObject* Source, FName Id, bool Value);
47
48 UFUNCTION(BlueprintCallable, meta = (BlueprintInternalUseOnly = "true", DefaultToSelf = "Source"))
49 static int32 HookPointByte(UObject* Source, FName Id, uint8 Value, uint8& Result, bool& bCancelled,
50 bool& bCommitted);
51 UFUNCTION(BlueprintCallable, meta = (BlueprintInternalUseOnly = "true", DefaultToSelf = "Source"))
52 static int32 PublishEventByte(UObject* Source, FName Id, uint8 Value);
53
54 UFUNCTION(BlueprintCallable, CustomThunk,
55 meta = (BlueprintInternalUseOnly = "true", DefaultToSelf = "Source",
56 CustomStructureParam = "Value,Result"))
57 static int32 HookPointStruct(UObject* Source, FName Id, const int32& Value, int32& Result, bool& bCancelled,
58 bool& bCommitted);
59 DECLARE_FUNCTION(execHookPointStruct);
60
61 UFUNCTION(BlueprintCallable, CustomThunk,
62 meta = (BlueprintInternalUseOnly = "true", DefaultToSelf = "Source", CustomStructureParam = "Value"))
63 static int32 PublishEventStruct(UObject* Source, FName Id, const int32& Value);
64 DECLARE_FUNCTION(execPublishEventStruct);
65
66 UFUNCTION(BlueprintCallable, meta = (BlueprintInternalUseOnly = "true", DefaultToSelf = "Source"))
67 static int32 HookPointObject(UObject* Source, FName Id, UObject* Value, UObject*& Result, bool& bCancelled,
68 bool& bCommitted);
69 UFUNCTION(BlueprintCallable, meta = (BlueprintInternalUseOnly = "true", DefaultToSelf = "Source"))
70 static int32 PublishEventObject(UObject* Source, FName Id, UObject* Value);
71};
Cooked entry points referenced by the host Blueprint compiler.
Definition ModHostExtensionLibrary.h:12
static int32 PublishEvent(UObject *Source, FName Id, float Value)
Publishes a generated Event for its declaring Blueprint on the game thread.
static int32 HookPoint(UObject *Source, FName Id, float Value, float &Result, bool &bCancelled, bool &bCommitted)
Executes the generated Hook for a host Blueprint on the game thread.