pub fn spawn_wave(
sink: &mut dyn FightSink,
rng: &GameRng,
config: &GameConfig,
lookups: &ContentLookups,
fight: &ActiveFight,
fight_data: &WaveFightData,
base_power: f64,
current_chapter: i64,
fight_type: &str,
) -> Result<(), Error>Expand description
Native: the prepare_fight interpreter. Computes normalised enemy stats from
the chapter power curve + the typed wave blob, then emits spawn events for the
current wave. RNG is consumed once per spawned enemy (the spawn-entity uuid),
in iteration order — identical to the original. fight supplies
current_wave + the live entities (for the multi-wave x-offset).