template<typename TNet, typename TRollback, typename TFrame>
World class

Typed simulation container that binds a concrete LogicThread policy triple.

Template parameters
TNet Net policy — SoloSim, AuthoritySim, or OwnerSim.
TRollback Rollback policy — NoRollback or RollbackSim.
TFrame Frame policy — GameFrame.

Knowing the exact LogicThread type at compile time eliminates static_cast at wire-up sites and all #if NET_MODEL_* guards inside Initialize.

In standalone/Authority/Owner builds use WorldType from Globals.h. In PIE, EditorContext constructs PIEServerWorld and PIEClientWorld directly.

Base classes

class WorldBase
Non-template base class for all World specializations.

Public types

using LogicType = LogicThread<TNet, TRollback, TFrame>
Fully-typed logic thread for this world.

Public functions

auto Initialize(const EngineConfig& config, ConstructRegistry* constructRegistry, int windowWidth = 1920, int windowHeight = 1080) -> bool
auto GetTypedLogicThread() const -> LogicType*
Returns the typed logic thread pointer (non-owning; WorldBase::Logic owns it).
void EnqueueCorrections(std::vector<EntityTransformCorrection> corrections, uint32_t earliestClientFrame) override
Forwards transform corrections to the rollback subsystem; no-op when TRollback::Enabled is false.
void EnqueuePredictedCorrections(std::vector<EntityTransformCorrection> corrections) override
Forwards predicted corrections to the rollback subsystem; no-op when TRollback::Enabled is false.
void EnqueueSpawnRollback(uint32_t clientFrame) override
Enqueues a spawn-triggered rollback to the given client frame; no-op when rollback is disabled.
void BindAuthorityNet(AuthorityNet* net, NetConnectionManager* connMgr) override
Binds the AuthorityNet handler; no-op on non-Authority builds.