class

FRollbackSystem

The project's rollback netcode in a play session (net.Rollback). With the switch on and an online session running, every player is a rollback player in player-id order; the scene's ECS world becomes the rollback simulation, advanced at net.Rollback.TickRate with the steps games register (RegisterStep), each player's input written into its RollbackPlayer component every frame. Session messages ride the online session's events (the host relays between clients). Offline, a one-player session runs the same fixed-step loop, so a game behaves the same alone and online.

Module
Game
Header
#include "Rollback/RollbackSystem.h"
Namespace
Mowo

The physics scene is not part of the scene rollback: PhysicsSystem steps on wall-clock time and owns its bodies' lifetimes. Physics that must roll back belongs to a physics world the game steps inside a registered step — FRollbackWorld covers it when one is handed in.

Properties

TypeNameDescription
static constexpr uint16_tkEventIdDefault 0xFE40.

Constructors

SignatureNameDescription
FRollbackSystem()FRollbackSystem
~FRollbackSystem() override~FRollbackSystem
FRollbackSystem(const FRollbackSystem&) = deleteFRollbackSystem

Public functions

ReturnsNameDescription
FRollbackSystem&operator=
SystemPhaseGetPhase
const char*GetDebugName
voidInitialize
voidUpdate
voidShutdown
voidSetLocalInputWhat this machine's player presses this frame; the system files it inputDelay frames ahead.
boolIsActive
const FRollbackSession*GetSession
uint32_tGetLocalPlayer
voidRegisterStepA deterministic gameplay step, run every rollback frame (and again on every resimulation).
voidUnregisterStep
FRollbackSystem*Find

Function details

FRollbackSystem

C++
FRollbackSystem()

~FRollbackSystem

C++
~FRollbackSystem() override

FRollbackSystem

C++
FRollbackSystem(const FRollbackSystem&) = delete

operator=

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

GetPhase

C++
SystemPhase GetPhase() const override

GetDebugName

C++
const char* GetDebugName() const override

Initialize

C++
void Initialize(World* world) override

Update

C++
void Update(float deltaTime) override

Shutdown

C++
void Shutdown() override

SetLocalInput

C++
void SetLocalInput(const FRollbackInput& input)

What this machine's player presses this frame; the system files it inputDelay frames ahead.

IsActive

C++
bool IsActive() const

GetSession

C++
const FRollbackSession* GetSession() const

GetLocalPlayer

C++
uint32_t GetLocalPlayer() const

RegisterStep

C++
static void RegisterStep(const std::string& name, FRollbackWorld::FStep step)

A deterministic gameplay step, run every rollback frame (and again on every resimulation). Name-ordered, so every peer runs them alike.

UnregisterStep

C++
static void UnregisterStep(const std::string& name)

Find

C++
static FRollbackSystem* Find(World& world)
Generated from Rollback/RollbackSystem.h via game.json · Nov 5, 2026Version 1.0.0