Module |
|
Header |
/Engine/Plugins/Runtime/NetworkPrediction/Source/NetworkPrediction/Public/NetworkPredictionCueTraits.h |
Include |
#include "NetworkPredictionCueTraits.h" |
enum ESimulationTickContext
{
None = 0,
Authority = 1 << 0,
Predict = 1 << 1,
Resimulate = 1 << 2,
SimExtrapolate = 1 << 3,
ResimExtrapolate = 1 << 4,
}
Name |
Description |
---|---|
None |
|
Authority |
|
Predict |
|
Resimulate |
|
SimExtrapolate |
|
ResimExtrapolate |
NetSimCue Traits: compile time settings for NetSimeCue types that determine who can invoke the event and who it replicates to. See "Mock Cue Example" in NetworkedSimulationModelCues.cpp for minimal examples for using/setting traits.
There are three traits:
// Who can Invoke this Cue in their simulation (if this test fails, the Invoke call is suppressed locally) static constexpr ENetSimCueInvoker InvokeMask { InInvokeMask };
// Whether the cue will be invoked during resimulates (which will require cue to be rollbackable) static constexpr bool Resimulate { InResimulate };
// Does the cue replicate? (from authority). This will also determine if the cue needs to be saved locally for NetIdentical tests (to avoid double playing) and if needs to support rollback static constexpr ENetSimCueReplicationTarget ReplicationTarget { InReplicationTarget }; When we run a SimulationTick, it will be done under one of these contexts. This isn't NetSimCue specific and probably makes sense to move to the NetSimModel types