MCPcopy Create free account
hub / github.com/crownengine/crown / post_unit_spawned_events

Method post_unit_spawned_events

src/world/world.cpp:928–935  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

926}
927
928void World::post_unit_spawned_events(UnitId *units, u32 num_units)
929{
930 for (u32 i = 0; i < num_units; ++i) {
931 UnitSpawnedEvent ev;
932 ev.unit = units[i];
933 event_stream::write(_events, EventType::UNIT_SPAWNED, ev);
934 }
935}
936
937void World::post_unit_destroyed_event(UnitId unit)
938{

Callers

nothing calls this directly

Calls 1

writeFunction · 0.50

Tested by

no test coverage detected