Navigation
API > API/Plugins > API/Plugins/NetworkPrediction
References
Module | NetworkPrediction |
Header | /Engine/Plugins/Runtime/NetworkPrediction/Source/NetworkPrediction/Public/NetworkPredictionCueTraits.h |
Include | #include "NetworkPredictionCueTraits.h" |
Syntax
enum ESimulationTickContext
&123;
None = 0,
Authority = 1 << 0,
Predict = 1 << 1,
Resimulate = 1 << 2,
SimExtrapolate = 1 << 3,
ResimExtrapolate = 1 << 4,
&125;
Values
Name | Description |
---|---|
None | |
Authority | |
Predict | |
Resimulate | |
SimExtrapolate | |
ResimExtrapolate |
Remarks
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 NetworkPredictionCueTests.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 };