Navigation
API > API/Developer > API/Developer/CQTest
Object which saves the state of the game before starting the test, Then restores it after the test is complete.
| Name | FPIENetworkTestStateRestorer |
| Type | class |
| Header File | /Engine/Source/Developer/CQTest/Public/Components/PIENetworkTestStateRestorer.h |
| Include Path | #include "Components/PIENetworkTestStateRestorer.h" |
Syntax
class FPIENetworkTestStateRestorer
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Components/PIENetworkTestStateRestorer.h | |||
FPIENetworkTestStateRestorer
(
const FSoftClassPath InGameInstanceClass, |
Construct the PIENetworkTestStateRestorer. | Components/PIENetworkTestStateRestorer.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| OriginalGameInstance | FSoftClassPath | Components/PIENetworkTestStateRestorer.h | ||
| OriginalGameMode | TSubclassOf< AGameModeBase > | Components/PIENetworkTestStateRestorer.h | ||
| SetWasLoadedFlag | bool | Components/PIENetworkTestStateRestorer.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Restore() |
Restore to the previous game instance and mode. | Components/PIENetworkTestStateRestorer.h |