Module |
|
Header |
/Engine/Plugins/Runtime/NetworkPrediction/Source/NetworkPrediction/Public/NetworkedSimulationModelRepControllers.h |
Include |
#include "NetworkedSimulationModelRepControllers.h" |
template<typename Model>
struct TRepController_Empty
Replication Controllers
The RepControllers are the pieces of the TNetworkedSimulationModel that make up the role-specific functionality (Server, Autonomous Client, and Simulated Client). Mainly they NetSerialize, Reconcile, and have Pre/Post sim tick functions. The TNetworkedSimulationModel is still the core piece that ticks the sim, but the Replicators do everything else in a role-specific way.
Name | Description | ||
---|---|---|---|
|
GetProxyDirtyCount ( |
Used for client shadowstate compares. Should just call GetDirtyCount() on the buffer you are replicating. |
|
|
NetSerialize ( |
NetSerialize: just serialize the network data. Don't run simulation steps. Every replicator will be NetSerialized before moving on to Reconcile phase. |
|
|
PostSimTick ( |
Called after input processing. Should finalize the frame and do any smoothing/interpolation. This function is not allowed to modify the buffers or tick state, or even call the simulation/Update function. |
|
|
PreSimTick ( |
Called prior to input processing. This function must update Ticker to allow simulation time (from TickParameters) and to possibly get new input. |
|
|
Reconcile ( |
Reconcile: called after everyone has NetSerialized. "Get right with the server": this function is about reconciling what the server told you vs what you have extrapolated or forward predicted locally. |
Name |
Description |
---|---|
TAuxState |
|
TBufferTypes |
|
TDriver |
|
TInputCmd |
|
TSimulation |
|
TSyncState |
|
TTickSettings |