| 19 | } |
| 20 | |
| 21 | void 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 | |
| 30 | unsigned int WeaponState::CurrentWeaponIndex() const |
| 31 | { |
nothing calls this directly
no outgoing calls
no test coverage detected