Keyboard shortcuts

Press ← or → to navigate between chapters

Press ? to show this help

Press Esc to hide this help

data/wave_tables/

A wave table: the archetypes a director’s waves and a Pool spawner spawn, by weight, what each costs the director’s budget, and a wave’s size. Loaded by the server only.

Registrymanifold-ai:wave-table
Filesdata/wave_tables/*.ron, *.update.ron, *.final.ron
Sidesserver: only the server loads it
Readsnothing
ContractPopulation, data stage

Entry

A record, written WaveTable(..); the name before the parentheses is optional.

FieldTypeRequiredDefaultDescription
idstringyesThe table’s key, <mod-id>:<name>.
entrieslist of WaveEntryyesThe archetypes, at least one with a positive weight.
sizeu16no8Creatures in a wave the director’s TriggerWave input asks for, 1 to 1000.

Example

No bundled file declares one yet. From the reference’s test fixture, crates/manifold-server-state/tests/data-reference-fixture/data/wave_tables/skeletons.ron, which the data stage loads in its tests:

WaveTable(id: "dataref-fixture:waves/skeletons", entries: [(archetype: "dataref-fixture:skeleton")])

Types

WaveEntry

One archetype of a wave table.

A record: WaveEntry(..) or (..).

FieldTypeRequiredDefaultDescription
archetypestringyesThe archetype (manifold:archetype key). An unknown key fails the data stage (DATA010).
weightu32no1Its weight.
costu16no1Budget points one spawn costs.