group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
group2::perf::shotlog::ShotResolution Struct Reference

Per-shot record for the server-side shot-resolution log. More...

#include <ShotLog.hpp>

Public Attributes

std::uint16_t shooterClientId = 0
std::uint32_t shotInputTick = 0
std::uint16_t hitClientId = k_missClientId
float hitX = 0.0f
float hitY = 0.0f
float hitZ = 0.0f
int hitRegion = 0
float originX = 0.0f
float originY = 0.0f
float originZ = 0.0f
float dirX = 0.0f
float dirY = 0.0f
float dirZ = 0.0f
std::uint16_t shooterRttMs = 0
std::uint16_t lagCompTicks = 0
float hitTargetRewoundX = 0.0f
float hitTargetRewoundY = 0.0f
float hitTargetRewoundZ = 0.0f
float hitTargetCurrentX = 0.0f
float hitTargetCurrentY = 0.0f
float hitTargetCurrentZ = 0.0f
std::uint16_t clientIntentTargetClientId = k_missClientId
float animStateDelta = 0.0f
int clientIntentReceived = 0

Detailed Description

Per-shot record for the server-side shot-resolution log.

PR-22 (netsync): grew from a flat parameter list to a POD so the callsite can fill the rewind-related fields incrementally inside the RewindHitboxesGuard scope without pushing 14 arguments through recordShotResolution. All fields are zeroed by default — the log writes them verbatim, so a missed shot or a non-rewound shooter just produces zero columns.

Member Data Documentation

◆ animStateDelta

float group2::perf::shotlog::ShotResolution::animStateDelta = 0.0f

◆ clientIntentReceived

int group2::perf::shotlog::ShotResolution::clientIntentReceived = 0

◆ clientIntentTargetClientId

std::uint16_t group2::perf::shotlog::ShotResolution::clientIntentTargetClientId = k_missClientId

◆ dirX

float group2::perf::shotlog::ShotResolution::dirX = 0.0f

◆ dirY

float group2::perf::shotlog::ShotResolution::dirY = 0.0f

◆ dirZ

float group2::perf::shotlog::ShotResolution::dirZ = 0.0f

◆ hitClientId

std::uint16_t group2::perf::shotlog::ShotResolution::hitClientId = k_missClientId

◆ hitRegion

int group2::perf::shotlog::ShotResolution::hitRegion = 0

◆ hitTargetCurrentX

float group2::perf::shotlog::ShotResolution::hitTargetCurrentX = 0.0f

◆ hitTargetCurrentY

float group2::perf::shotlog::ShotResolution::hitTargetCurrentY = 0.0f

◆ hitTargetCurrentZ

float group2::perf::shotlog::ShotResolution::hitTargetCurrentZ = 0.0f

◆ hitTargetRewoundX

float group2::perf::shotlog::ShotResolution::hitTargetRewoundX = 0.0f

◆ hitTargetRewoundY

float group2::perf::shotlog::ShotResolution::hitTargetRewoundY = 0.0f

◆ hitTargetRewoundZ

float group2::perf::shotlog::ShotResolution::hitTargetRewoundZ = 0.0f

◆ hitX

float group2::perf::shotlog::ShotResolution::hitX = 0.0f

◆ hitY

float group2::perf::shotlog::ShotResolution::hitY = 0.0f

◆ hitZ

float group2::perf::shotlog::ShotResolution::hitZ = 0.0f

◆ lagCompTicks

std::uint16_t group2::perf::shotlog::ShotResolution::lagCompTicks = 0

◆ originX

float group2::perf::shotlog::ShotResolution::originX = 0.0f

◆ originY

float group2::perf::shotlog::ShotResolution::originY = 0.0f

◆ originZ

float group2::perf::shotlog::ShotResolution::originZ = 0.0f

◆ shooterClientId

std::uint16_t group2::perf::shotlog::ShotResolution::shooterClientId = 0

◆ shooterRttMs

std::uint16_t group2::perf::shotlog::ShotResolution::shooterRttMs = 0

◆ shotInputTick

std::uint32_t group2::perf::shotlog::ShotResolution::shotInputTick = 0

The documentation for this struct was generated from the following file: