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

Method BuildStateMessage

PanzerChasm/server/player.cpp:400–411  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

398}
399
400void Player::BuildStateMessage( Messages::MonsterState& out_message ) const
401{
402 PositionToMessagePosition( pos_, out_message.xyz );
403 out_message.angle= AngleToMessageAngle( angle_ );
404 out_message.monster_type= 0u;
405 out_message.body_parts_mask= GetBodyPartsMask();
406 out_message.animation= CurrentAnimation();
407 out_message.animation_frame= CurrentAnimationFrame();
408 out_message.is_fully_dead= IsFullyDead();
409 out_message.is_invisible= inviible_in_this_moment_;
410 out_message.color= GetColor();
411}
412
413void Player::SetRandomGenerator( const LongRandPtr& random_generator )
414{

Callers 5

LoopMethod · 0.45
MapMethod · 0.45
SpawnPlayerMethod · 0.45
SendUpdateMessagesMethod · 0.45

Calls 2

AngleToMessageAngleFunction · 0.85

Tested by

no test coverage detected