Navigation
API > API/Plugins > API/Plugins/NetcodeUnitTest
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- AActor
- ANUTActor
References
| Module | NetcodeUnitTest |
| Header | /Engine/Plugins/NetcodeUnitTest/NetcodeUnitTest/Source/NetcodeUnitTest/Classes/NUTActor.h |
| Include | #include "NUTActor.h" |
Syntax
UCLASS&40;&41;
class ANUTActor :
public AActor,
public FSelfRegisteringExec
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bMonitorForBeacon | Monitors for the creation of the beacon net driver, if -BeaconPort=x was specified on the commandline | |
| float | LastAliveTime | The value of World.RealTimeSeconds as of the last time the client was marked as still alive | |
| FExecuteOnServer | TempDelegate | A delegate property, used solely for converting strings to delegates |
Constructors
| Type | Name | Description | |
|---|---|---|---|
ANUTActor
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Executes a console command on the server | ||
| void | ExecuteOnServer
(
UObject* InTargetObj, |
Executes the function specified in the delegate, on the server (used within unit tests) | |
| void | HookNetDriver
(
UNetDriver* TargetNetDriver |
Hooks control channel messages for the specified net driver | |
| void | NetFlush () |
Flushes all pending net connection packets | |
| void | Received by all clients, emits a ping to log | ||
| bool | NotifyControlMessage
(
UNetConnection* Connection, |
||
| void | NotifyPostLoadMap
(
UWorld* LoadedWorld |
||
| void | ServerAdmin
(
const FString& Command |
||
| void | Send a 'ping' RPC to all clients, to make them log a ping, which unit tests then use to verify the presence of a client process | ||
| void | Notifies the server that the client is still around | ||
| void | ServerExecute
(
const FString& InDelegate |
Takes a string representing a delegate (can't replicate delegate parameters), and executes that delegate on the server | |
| void | ServerReceiveText
(
const FText& InText |
Test log function | |
| void | UnitSeamlessTravel
(
FString Dest |
Triggers seamless travel | |
| void | UnitTravel
(
FString Dest |
Triggers normal travel | |
| void | UpdateOwner () |
Update the owner for the NUTActor, if the current owner is no longer valid | |
| bool | |||
| void | Wait
(
uint16 Seconds |
Makes the game thread wait for the specified number of seconds |
Overridden from AActor
| Type | Name | Description | |
|---|---|---|---|
| UNetConnection * | Get the owning connection used for communicating between client/server | ||
| void | Called when an actor is done spawning into the world (from UWorld::SpawnActor), both in the editor and during gameplay For actors with a root component, the location and rotation will have already been set. | ||
| void | Tick
(
float DeltaSeconds |
Function called every frame on this Actor. |
Overridden from FExec
| Type | Name | Description | |
|---|---|---|---|
| bool | Exec
(
UWorld* InWorld, |
FExec interface |