class

FRemoteConfig

FRemoteConfig — values a live game can change without a patch: defaults in code (or a defaults file), overridden by a signed document fetched over HTTP and cached for the next offline start, overridden again per A/B variant. A document only applies when it verifies against the project's signing key and is not older than the one in force, so neither a tampered response nor a replayed old one can change the game.

Module
Game
Header
#include "LiveOps/RemoteConfig.h"
Namespace
Mowo

A/B: a user's variant of an experiment is a pure function of the user id and the experiment name (FNV-1a into 10 000 buckets, walked against the variant weights), the same on every launch and every machine; reading a variant records one "experiment_exposure" telemetry event per experiment.

Constructors

SignatureNameDescription
~FRemoteConfig()~FRemoteConfig
FRemoteConfig(const FRemoteConfig&) = deleteFRemoteConfig

Public functions

ReturnsNameDescription
FRemoteConfig&Get
FRemoteConfig&operator=
voidWaitForFetchJoins a fetch still in flight (shutdown).
voidConfigure
const FRemoteConfigSettings&GetSettings
voidSetDefault
voidSetDefaultString
voidSetDefaultNumber
voidSetDefaultBool
boolLoadDefaultsFileA JSON object of key: value defaults (Config/LiveOpsDefaults.json).
boolLoadCacheApplies the cached envelope, re-verified; false when none or invalid.
ERemoteConfigFetchFetchBlocking GET + verify + apply + cache.
voidFetchAsyncThe same on a worker; Poll on the game thread picks the result up.
boolPollAsync
ERemoteConfigFetchApplyEnvelopeWhat Fetch does with a response body; public for tools and tests.
std::stringGetString
doubleGetNumber
int64_tGetInt
boolGetBool
boolHas
std::stringGetVariantThe variant of an experiment this user is in; empty when the experiment is not in the document.
std::map<std::string, std::string>GetAssignedVariantsEvery experiment's variant for this user, exposed or not — what each telemetry event carries so a report can split by variant.
int64_tGetVersion
ERemoteConfigSourceGetSource
const std::string&GetUserId
uint32_tBucket
voidResetBack to nothing but defaults (tests, a logout).

Function details

~FRemoteConfig

C++
~FRemoteConfig()

FRemoteConfig

C++
FRemoteConfig(const FRemoteConfig&) = delete

Get

C++
static FRemoteConfig& Get()

operator=

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

WaitForFetch

C++
void WaitForFetch()

Joins a fetch still in flight (shutdown).

Configure

C++
void Configure(const FRemoteConfigSettings& settings)

GetSettings

C++
const FRemoteConfigSettings& GetSettings() const

SetDefault

C++
void SetDefault(const std::string& key, const std::string& jsonValue)

SetDefaultString

C++
void SetDefaultString(const std::string& key, const std::string& value)

SetDefaultNumber

C++
void SetDefaultNumber(const std::string& key, double value)

SetDefaultBool

C++
void SetDefaultBool(const std::string& key, bool value)

LoadDefaultsFile

C++
bool LoadDefaultsFile(const std::string& path)

A JSON object of key: value defaults (Config/LiveOpsDefaults.json).

LoadCache

C++
bool LoadCache()

Applies the cached envelope, re-verified; false when none or invalid.

Fetch

C++
ERemoteConfigFetch Fetch()

Blocking GET + verify + apply + cache.

FetchAsync

C++
void FetchAsync()

The same on a worker; Poll on the game thread picks the result up.

PollAsync

C++
bool PollAsync(ERemoteConfigFetch& outResult)

ApplyEnvelope

C++
ERemoteConfigFetch ApplyEnvelope(const std::string& envelope, std::string* outReason)

What Fetch does with a response body; public for tools and tests.

GetString

C++
std::string GetString(const std::string& key, const std::string& fallback) const

GetNumber

C++
double GetNumber(const std::string& key, double fallback) const

GetInt

C++
int64_t GetInt(const std::string& key, int64_t fallback) const

GetBool

C++
bool GetBool(const std::string& key, bool fallback) const

Has

C++
bool Has(const std::string& key) const

GetVariant

C++
std::string GetVariant(const std::string& experiment)

The variant of an experiment this user is in; empty when the experiment is not in the document.

GetAssignedVariants

C++
std::map<std::string, std::string> GetAssignedVariants() const

Every experiment's variant for this user, exposed or not — what each telemetry event carries so a report can split by variant.

GetVersion

C++
int64_t GetVersion() const

GetSource

C++
ERemoteConfigSource GetSource() const

GetUserId

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

Bucket

C++
static uint32_t Bucket(const std::string& userId, const std::string& experiment)

Reset

C++
void Reset()

Back to nothing but defaults (tests, a logout).

Generated from LiveOps/RemoteConfig.h via game.json · Nov 5, 2026Version 1.0.0