Navigation
API > API/Runtime > API/Runtime/NetCore
Base class for loading and initializing state configuration
| Name | UStatePerObjectConfig |
| Type | class |
| Header File | /Engine/Source/Runtime/Net/Core/Public/Net/Core/Connection/StateStruct.h |
| Include Path | #include "Net/Core/Connection/StateStruct.h" |
Syntax
UCLASS (Config=Engine, PerObjectConfig, MinimalAPI)
class UStatePerObjectConfig : public UObject
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UStatePerObjectConfig
Derived Classes
Structs
| Name | Remarks |
|---|---|
| FStateConfigRegister |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bEnabled | bool | Whether or not this state configuration instance is enabled (states will not load, if not) | Net/Core/Connection/StateStruct.h |
|
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ConfigParms | FStateConfigParms | Cached parameters that were used to create this instance | Net/Core/Connection/StateStruct.h | |
| PerObjectConfigSection | FString | Overrides the config section name, using the CDO | Net/Core/Connection/StateStruct.h | |
| RegisteredStateConfigs | TArray< FStateConfigRegister > | Stores a list of state name arrays registered to state instance arrays, to allow debug dumping of values | Net/Core/Connection/StateStruct.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void DebugDump() |
Debug function which prints the entire state configuration to the log | Net/Core/Connection/StateStruct.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void RegisterStateConfig
(
const TArray< FString >& StateNames, |
Registers an array of state names to an array of state instances (of a type derived from FStateStruct). | Net/Core/Connection/StateStruct.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void ApplyState
(
const FStructOnScope& ConfigState, |
Applies the specified config state, to an object implementing FStateStruct's. | Net/Core/Connection/StateStruct.h | |
static const UStatePerObjectConfig * Get
(
FStateConfigParms ConfigParms |
Singleton for getting a named instance of this config section/object | Net/Core/Connection/StateStruct.h | |
static UStatePerObjectConfig * GetArchetype
(
FStateConfigParms ConfigParms, |
Internal singleton for getting the custom archetype/default-object instance for a config section/object (to allow custom default values) | Net/Core/Connection/StateStruct.h | |
static bool LoadStructConfig
(
FStructOnScope& OutStruct, |
Uses reflection to load all struct config variables from the specified ini section. | Net/Core/Connection/StateStruct.h |