10 for (
const npcs::Spawn& spawn : table.
spawns) {
14 const npcs::Kind& kind = table.
kinds.at(spawn.kind());
17 std::cerr <<
"no " << kind.name() <<
" at " << spawn.x() <<
", "
18 << spawn.z() <<
": the ground isn't walkable there\n";
26 .talks = kind.talks(),
27 .teaches = {kind.teaches().begin(), kind.teaches().end()}});
bool Walkable(float x, float z) const
const Terrain & terrain() const
uint32_t Spawn(Monster monster)
int LandNamed(std::string_view name)
Its place in the list, or the first land's for a name that isn't there.
void SpawnNpcs(World &land, int index, const NpcTable &table)
The kinds of NPC, by id, and where each NPC stands.
std::vector< npcs::Spawn > spawns
std::map< uint32_t, npcs::Kind > kinds