| 926 | } |
| 927 | |
| 928 | void 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 | |
| 937 | void World::post_unit_destroyed_event(UnitId unit) |
| 938 | { |