69 void Write(std::ostream &out)
const {
93 bool Read(std::istream &in, uint32_t size) {
95 in.setstate(std::ios_base::failbit);
100 double fixed_delta = 0.0;
103 reader.
Read(flags) &&
112 reader.
Read(fixed_delta) &&
Reads the fields of one packet (or one record inside it) without ever consuming more than its declare...
void WritePod(std::ostream &out, const T &value)
void WriteFrameDataHeader(std::ostream &out, uint8_t id, uint32_t payload_size)
constexpr uint8_t kMultiGpuProtocolVersion
Version of the whole Multi-GPU wire format, carried in every frame.
This file contains definitions of common data structures used in traffic manager.
Frame data packet 25: the primary's clocks and episode settings for one frame.
double world_audio_time_seconds
void Write(std::ostream &out) const
bool synchronous_mode
The primary's episode settings after frame N (FEpisodeSettings, in UE units).
bool Read(std::istream &in, uint32_t size)
Reads a payload of size bytes.
double max_substep_delta_time
float tile_streaming_distance
double elapsed_game_time
UCarlaEpisode clocks at the end of frame N.
double world_unpaused_time_seconds
float delta_seconds
The raw DeltaSeconds that UWorld::Tick(N) received, before time dilation and clamping.
uint64_t frame
Frame counter of frame N; equal to the frame's FrameCounter packet.
static constexpr uint32_t kPayloadSizeV1
Size of the version 1 payload; later versions only append fields.
bool full_resync
Set on the frame that rebuilds a secondary from scratch (a new or reconnected secondary,...
float actor_active_distance
float time_dilation
AWorldSettings::GetEffectiveTimeDilation() of frame N.
bool adjust_signs_height_to_ground
uint8_t PackFlags() const
float max_culling_distance
double world_real_time_seconds
double world_time_seconds
UWorld clocks at the start of frame N, before UWorld::Tick adds the delta to them.
void UnpackFlags(uint8_t flags)
static constexpr uint8_t kPacketId
bool deterministic_ragdolls
std::optional< double > fixed_delta_seconds