Module |
|
Header |
/Engine/Plugins/Runtime/NetworkPrediction/Source/NetworkPrediction/Public/NetworkedSimulationModelRepControllers.h |
Include |
#include "NetworkedSimulationModelRepControllers.h" |
template<typename Model>
void GenerateLocalInputCmdAtFrame
(
typename TNetSimModelTraits< Model >::Driver * Driver,
TNetworkSimBufferContainer< Model > & Buffers,
const FNetworkSimTime & DeltaSimTime,
int32 Frame,
bool bProduceInputViaDriver
)
Helpers
Helper that writes a new input cmd to the input buffer, at given Frame (usually the sim's PendingFrame). If frame doesn't exist, ProduceInput is called on the driver if bProduceInputViaDriver=true, otherwise the input cmd will be initialized from the previous input cmd.