|
group2 0.1.0
CSE 125 Group 2
|
Combined-reference helper for code that needs both halves. More...
#include <PlayerSimState.hpp>
Public Attributes | |
| PlayerVisState & | vis |
| PlayerSimState & | sim |
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.
| PlayerSimState& PlayerStateRef::sim |
| PlayerVisState& PlayerStateRef::vis |