Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Tests
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Public/Tests/NetTestHelpers.h |
| Include | #include "Tests/NetTestHelpers.h" |
Syntax
struct FTestWorldInstance
Remarks
Properly scoped/RAII wrapper around a GameInstance/WorldContext/World that makes it easier to write tests involving full UWorld functionality within the scope of one function.
Variables
| Type | Name | Description | |
|---|---|---|---|
| UGameInstance * | GameInstance |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FTestWorldInstance
(
const FTestWorldInstance& |
|||
FTestWorldInstance
(
bool bDelayedInit |
|||
FTestWorldInstance
(
FTestWorldInstance&& Other |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| FTestWorldInstance | CreateClient
(
int32 ServerPort |
||
| FTestWorldInstance | CreateServer
(
const TCHAR* InURL |
||
| UNetDriver * | GetNetDriver () |
||
| int32 | GetPort () |
||
| FContext | |||
| UWorld * | GetWorld () |
||
| FWorldContext * | |||
| void | LoadStreamingLevel
(
FName LevelName |
||
| void | Tick
(
float DeltaSeconds |
||
| void | UnloadStreamingLevel
(
FName LevelName |
Operators
| Type | Name | Description | |
|---|---|---|---|
| FTestWorldInstance & | operator=
(
const FTestWorldInstance& |
||
| FTestWorldInstance & | operator=
(
FTestWorldInstance&& Other |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FContext |