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

Method BuildWeaponMessage

PanzerChasm/server/player.cpp:598–605  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

596}
597
598void Player::BuildWeaponMessage( Messages::PlayerWeapon& out_weapon_message ) const
599{
600 out_weapon_message.current_weapon_index_= current_weapon_index_;
601 out_weapon_message.animation= current_weapon_animation_;
602 out_weapon_message.animation_frame= current_weapon_animation_frame_;
603
604 out_weapon_message.switch_stage= static_cast<unsigned int>( weapon_switch_stage_ * 254.9f );
605}
606
607bool Player::BuildSpawnMessage( Messages::PlayerSpawn& out_spawn_message, const bool force ) const
608{

Callers 1

LoopMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected