๐Ÿง  AutoReplication Coordinator

Short Description

Central runtime coordinator that registers AutoReplication streams and initializes Iris or Replication Graph backends.

Long Description

The coordinator is a world-scoped manager that tracks active streams, handles backend initialization, and keeps replication graph registrations in sync. It also forwards RPC broadcast events for debug tooling.

๐Ÿš€ Features

  • Registers and unregisters Object Variable streams.
  • Initializes Iris or Replication Graph backends on demand.
  • Per-world lifecycle management with safe teardown.

๐Ÿ“š Usage Examples

FGorgeousAutoReplicationCoordinator& Coordinator = FGorgeousAutoReplicationCoordinator::Get(World);
Coordinator.RegisterObjectVariable(Variable, Config);

The coordinator is managed internally; use Object Variable APIs or mixins instead of calling it directly.

RegisterObjectVariable

Registers an Object Variable stream with the coordinator, enabling backend integration and scheduling.

Parameter Name Type Description
Variable UGorgeousObjectVariable* Object Variable to register.
Config FGorgeousAutoReplicationStreamConfig Stream configuration to apply.
Coordinator.RegisterObjectVariable(Variable, Config);

Best Practices

  • Let the world subsystem initialize the coordinator; avoid manual construction.
  • Clear streams on teardown to avoid stale backend registrations.

Troubleshooting

  • If Iris is unavailable, confirm the build flag GORGEOUSCORE_WITH_IRIS is enabled.
  • If replication graph warnings appear, verify the graph class override is set before initialization.