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

Method PrepareLightSourceBirthMessage

PanzerChasm/server/map.cpp:3211–3218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3209}
3210
3211void Map::PrepareLightSourceBirthMessage( const LightSource& light_source, const EntityId light_source_id, Messages::LightSourceBirth& message )
3212{
3213 message.light_source_id= light_source_id;
3214 PositionToMessagePosition( light_source.pos, message.xy );
3215 message.radius= CoordToMessageCoord( light_source.radius );
3216 message.brightness= static_cast<unsigned char>( light_source.brightness );
3217 message.turn_on_time_ms= light_source.turn_on_time_ms;
3218}
3219
3220int Map::GetRocketDamage( const int initial_damage )
3221{

Callers

nothing calls this directly

Calls 2

CoordToMessageCoordFunction · 0.85

Tested by

no test coverage detected