Skip to content

Commit

Permalink
Merge pull request #308 from satisfactorymodding/patch
Browse files Browse the repository at this point in the history
Fix missing include in bp hooking example
  • Loading branch information
budak7273 authored Jul 31, 2024
2 parents e8a373d + 9a09a58 commit 01bda71
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/ROOT/pages/Development/Cpp/hooking.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ in order to unsubscribe from the function.
== Blueprint-Hooking

Blueprint function hooking works by changing the instructions of a Blueprint UFunction
so that first your hook gets called.
so that your hook gets called before the original function.

The hook function signature is `void(FBlueprintHookHelper&)`.
This helper structure provides a couple of functions allowing you to read and write data
Expand All @@ -233,6 +233,7 @@ Usage goes as following:
[source,cpp]
----
#include "Patching/BlueprintHookManager.h"
#include "Patching/BlueprintHookHelper.h"
void registerHooks() {
UClass* SomeClass = ...;
Expand Down

0 comments on commit 01bda71

Please sign in to comment.