Navigation
API > API/Plugins > API/Plugins/NetcodeUnitTest > API/Plugins/NetcodeUnitTest/UClientUnitTest
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool SendUnitRPCChecked
(
FString RPCName |
As above, except executes a static UFunction in the unit test (must be prefixed with UnitTestServer_), on the unit test server, allowing unit tests to define and contain their own 'pseudo'-RPC's. | ClientUnitTest.h | |
bool SendUnitRPCChecked
(
FString RPCName |
As above, except allows 'UnitTestServer' RPC's to be located in an arbitrary class (e.g. if shared between unit tests), specified as the delegate parameter. | ClientUnitTest.h |
SendUnitRPCChecked(FString)
Description
As above, except executes a static UFunction in the unit test (must be prefixed with UnitTestServer_), on the unit test server, allowing unit tests to define and contain their own 'pseudo'-RPC's.
Functions that you want to call, must match this function template:
static void UnitTestServer_Func(ANUTActor* InNUTActor);
| Name | SendUnitRPCChecked |
| Type | function |
| Header File | /Engine/Plugins/NetcodeUnitTest/NetcodeUnitTest/Source/NetcodeUnitTest/Classes/ClientUnitTest.h |
| Include Path | #include "ClientUnitTest.h" |
bool SendUnitRPCChecked
(
FString RPCName
)
Whether or not the pseudo-RPC was sent successfully
Parameters
| Name | Remarks |
|---|---|
| RPCName | The name of the pseudo-RPC, which should be executed |
SendUnitRPCChecked(FString)
Description
As above, except allows 'UnitTestServer' RPC's to be located in an arbitrary class (e.g. if shared between unit tests), specified as the delegate parameter.
| Name | SendUnitRPCChecked |
| Type | function |
| Header File | /Engine/Plugins/NetcodeUnitTest/NetcodeUnitTest/Source/NetcodeUnitTest/Classes/ClientUnitTest.h |
| Include Path | #include "ClientUnitTest.h" |
template<class TargetClass>
bool SendUnitRPCChecked
(
FString RPCName
)
Whether or not the pseudo-RPC was sent successfully
Parameters
| Name | Remarks |
|---|---|
| TargetClass | The class which the 'UnitTestServer' function resides in. |
| RPCName | The name of the pseudo-RPC, which should be executed |