MCPcopy Create free account
hub / github.com/Panzerschrek/Chasm-Reverse / ProcessMessage

Method ProcessMessage

PanzerChasm/client/weapon_state.cpp:21–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19}
20
21void WeaponState::ProcessMessage( const Messages::PlayerWeapon& message )
22{
23 current_weapon_index_= message.current_weapon_index_;
24 current_animation_= message.animation;
25 current_animation_frame_= message.animation_frame;
26
27 switch_stage_= static_cast<float>( message.switch_stage ) / 255.0f;
28}
29
30unsigned int WeaponState::CurrentWeaponIndex() const
31{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected