111void close() noexcept;
Definition ShotLog.cpp:13
constexpr std::uint16_t k_missClientId
Sentinel hitClientId value meaning "shot missed alltargets".
Definition ShotLog.hpp:29
void recordShotResolution(const ShotResolution &shot)
Append one shot-resolution row.
Definition ShotLog.cpp:63
void openIfRequested()
Open the log file from GROUP2_SERVER_SHOTS_CSV if set, write the CSV header, and remember the FILE* f...
Definition ShotLog.cpp:31
void close() noexcept
Flush + close the log file. Called from ServerGame::shutdown.
Definition ShotLog.cpp:107
Per-shot record for the server-side shot-resolution log.
Definition ShotLog.hpp:45
int clientIntentReceived
Definition ShotLog.hpp:101
float originZ
Definition ShotLog.hpp:57
std::uint16_t lagCompTicks
Definition ShotLog.hpp:67
float hitX
Definition ShotLog.hpp:49
float originY
Definition ShotLog.hpp:56
float hitTargetCurrentZ
Definition ShotLog.hpp:82
float hitTargetCurrentX
Definition ShotLog.hpp:80
std::uint16_t hitClientId
Definition ShotLog.hpp:48
float hitZ
Definition ShotLog.hpp:51
float dirX
Definition ShotLog.hpp:58
float dirY
Definition ShotLog.hpp:59
std::uint16_t shooterRttMs
Definition ShotLog.hpp:66
std::uint16_t clientIntentTargetClientId
Definition ShotLog.hpp:99
std::uint32_t shotInputTick
Definition ShotLog.hpp:47
float originX
Definition ShotLog.hpp:55
float hitY
Definition ShotLog.hpp:50
int hitRegion
Definition ShotLog.hpp:52
std::uint16_t shooterClientId
Definition ShotLog.hpp:46
float animStateDelta
Definition ShotLog.hpp:100
float hitTargetRewoundZ
Definition ShotLog.hpp:79
float hitTargetRewoundX
Definition ShotLog.hpp:77
float hitTargetRewoundY
Definition ShotLog.hpp:78
float hitTargetCurrentY
Definition ShotLog.hpp:81
float dirZ
Definition ShotLog.hpp:60