group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
PlayerStateRef Struct Reference

Combined-reference helper for code that needs both halves. More...

#include <PlayerSimState.hpp>

Collaboration diagram for PlayerStateRef:
[legend]

Public Attributes

PlayerVisStatevis
PlayerSimStatesim

Detailed Description

Combined-reference helper for code that needs both halves.

Most call sites in MovementSystem.cpp's helper functions used to take a single PlayerState& parameter and freely touch any field. After the Phase-2 split they need access to both halves; rather than rewriting every helper signature to take two refs, they take one PlayerStateRef and use state.vis.X / state.sim.X for the field access. Keeps the migration diff small inside MovementSystem.cpp.

Member Data Documentation

◆ sim

PlayerSimState& PlayerStateRef::sim

◆ vis

PlayerVisState& PlayerStateRef::vis

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