Navigation
API > API/Plugins > API/Plugins/NetcodeUnitTest
Class for encapsulating ProcessEvent and general RPC hooks, implemented globally for each UWorld NOTE: Presently, all RPC hooks tied to UWorld's only hook client RPC's - global RPC hooks, hook both client and server RPC's
| Name | FProcessEventHook |
| Type | class |
| Header File | /Engine/Plugins/NetcodeUnitTest/NetcodeUnitTest/Source/NetcodeUnitTest/Public/Net/NUTUtilNet.h |
| Include Path | #include "Net/NUTUtilNet.h" |
Syntax
class FProcessEventHook
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FProcessEventHook() |
Default constructor | Net/NUTUtilNet.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| EventHooks | TMap< UWorld *, FOnProcessNetEvent > | The global list of ProcessEvent hooks, and the UWorld they are associated with | Net/NUTUtilNet.h | |
| GlobalEventHooks | TArray< FOnProcessNetEvent > | The global list of ProcessEvent hooks, which aren't associated with a specific UWorld | Net/NUTUtilNet.h | |
| GlobalNetEventHooks | TArray< FOnProcessNetEvent > | The global list of RPC hooks, which aren't associated with a specific UWorld | Net/NUTUtilNet.h | |
| NetEventHooks | TMap< UWorld *, FOnProcessNetEvent > | The global list of RPC hooks, and the UWorld they are associated with | Net/NUTUtilNet.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddEventHook
(
UWorld* InWorld, |
Adds a non-RPC hook for the specified UWorld. | Net/NUTUtilNet.h | |
FDelegateHandle AddGlobalEventHook
(
FOnProcessNetEvent InHook |
Adds a global non-RPC hook. | Net/NUTUtilNet.h | |
FDelegateHandle AddGlobalRPCHook
(
FOnProcessNetEvent InHook |
Adds a global RPC hook. | Net/NUTUtilNet.h | |
void AddRPCHook
(
UWorld* InWorld, |
Adds an RPC hook for the specified UWorld.FProcessNetEventHook | Net/NUTUtilNet.h | |
void RemoveEventHook
(
UWorld* InWorld |
Removes the hook for the specified UWorld. | Net/NUTUtilNet.h | |
void RemoveGlobalEventHook
(
FDelegateHandle InHandle |
Removes the specified global non-RPC hook | Net/NUTUtilNet.h | |
void RemoveGlobalRPCHook
(
FDelegateHandle InHandle |
Removes the specified global RPC hook | Net/NUTUtilNet.h | |
void RemoveRPCHook
(
UWorld* InWorld |
Removes the RPC hook for the specified UWorld. | Net/NUTUtilNet.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static FProcessEventHook & Get() |
Get a reference to the net event hook singular | Net/NUTUtilNet.h |