class

FGameFeatures

Module
Game
Header
#include "Game/GameFeatures.h"
Namespace
Mowo

Type aliases

AliasDescription
using FChangedCallback = std::function<void()>

Properties

TypeNameDescription
static constexpr const char*SettingsSectionDefault "/Script/Mowo.GameFeatureSettings".

Constructors

SignatureNameDescription
FGameFeatures()FGameFeatures
FGameFeatures(const FGameFeatures&) = deleteFGameFeatures

Public functions

ReturnsNameDescription
FGameFeatures&Get
FGameFeatures&operator=
const char*StateName
boolParseState
voidRegisterActionType
const FGameFeatureActionType*FindActionType
std::vector<std::string>GetActionTypeNames
boolRegister
boolUnregister
boolLoad
boolActivate
boolDeactivate
boolUnload
boolSetTargetState
voidSetFeatureEnabled
boolIsFeatureEnabled
const FGameFeatureInfo*Find
std::vector<FGameFeatureInfo>List
EGameFeatureStateGetState
boolIsActive
std::vector<FActiveAction>GetActiveActions
boolHasActorActions
uint32_tLoadSettings
uint32_tLoadProject
voidUnloadProject
const std::string&GetLoadedProjectRoot
voidApplyInitialStates
voidPollFeatures
uint32_tSubscribe
voidUnsubscribe
uint32_tGetRevision
voidReset

Function details

FGameFeatures

C++
FGameFeatures()

FGameFeatures

C++
FGameFeatures(const FGameFeatures&) = delete

Get

C++
static FGameFeatures& Get()

operator=

C++
FGameFeatures& operator=(const FGameFeatures&) = delete

StateName

C++
static const char* StateName(EGameFeatureState state)

ParseState

C++
static bool ParseState(const std::string& text, EGameFeatureState& out)

RegisterActionType

C++
void RegisterActionType(const std::string& type, const FGameFeatureActionType& handler)

FindActionType

C++
const FGameFeatureActionType* FindActionType(const std::string& type) const

GetActionTypeNames

C++
std::vector<std::string> GetActionTypeNames() const

Register

C++
bool Register(const FGameFeatureDesc& desc, std::string* error = nullptr)

Unregister

C++
bool Unregister(const std::string& name)

Load

C++
bool Load(const std::string& name, std::string* error = nullptr)

Activate

C++
bool Activate(const std::string& name, std::string* error = nullptr)

Deactivate

C++
bool Deactivate(const std::string& name)

Unload

C++
bool Unload(const std::string& name)

SetTargetState

C++
bool SetTargetState(const std::string& name, EGameFeatureState target, std::string* error = nullptr)

SetFeatureEnabled

C++
void SetFeatureEnabled(const std::string& name, bool enabled)

IsFeatureEnabled

C++
bool IsFeatureEnabled(const std::string& name) const

Find

C++
const FGameFeatureInfo* Find(const std::string& name) const

List

C++
std::vector<FGameFeatureInfo> List() const

GetState

C++
EGameFeatureState GetState(const std::string& name) const

IsActive

C++
bool IsActive(const std::string& name) const

GetActiveActions

C++
std::vector<FActiveAction> GetActiveActions() const

HasActorActions

C++
bool HasActorActions() const

LoadSettings

C++
uint32_t LoadSettings(const FConfigIniFile& ini, std::vector<std::string>* errors = nullptr)

LoadProject

C++
uint32_t LoadProject(const std::filesystem::path& projectRoot, std::vector<std::string>* errors = nullptr)

UnloadProject

C++
void UnloadProject()

GetLoadedProjectRoot

C++
const std::string& GetLoadedProjectRoot() const

ApplyInitialStates

C++
void ApplyInitialStates(std::vector<std::string>* errors = nullptr)

PollFeatures

C++
void PollFeatures()

Subscribe

C++
uint32_t Subscribe(FChangedCallback callback)

Unsubscribe

C++
void Unsubscribe(uint32_t token)

GetRevision

C++
uint32_t GetRevision() const

Reset

C++
void Reset()
Generated from Game/GameFeatures.h via game.json · Dec 5, 2026Version 1.1.0