mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-10 02:53:51 +00:00
feat(editor): add --gen-village-pack composite
Third composite pack (after --gen-camp-pack and --gen-blacksmith-pack), emitting a 7-primitive village-square scene into <outDir>: • house — main dwelling • outhouse — privy beside it • chimney — for the house roof piece • hitching-post — at the hitching rail • well — village square centerpiece • signpost — pointing the way out of town • haystack — from the nearby farm Together these form a recognizable rural-village hub when arranged in a zone. Uses the existing emitMeshPack helper — the new pack is just an 8-line declarative table. All 7 outputs validate clean (--validate-wom PASSED across the board). Composite-pack catalogue now: camp + blacksmith + village.
This commit is contained in:
parent
ca38f77fd0
commit
790fe64824
3 changed files with 23 additions and 1 deletions
|
|
@ -6663,6 +6663,25 @@ int handleGenBlacksmithPack(int& i, int /*argc*/, char** argv) {
|
|||
});
|
||||
}
|
||||
|
||||
int handleGenVillagePack(int& i, int /*argc*/, char** argv) {
|
||||
// Village square scene: a small house, an outhouse beside it,
|
||||
// a chimney for the house roof piece, a hitching post at the
|
||||
// hitching rail, a well for the village square, a signpost
|
||||
// pointing the way out, and a haystack from the nearby farm.
|
||||
// Together these primitives form a recognizable rural-village
|
||||
// hub when arranged in a zone.
|
||||
std::string outDir = argv[++i];
|
||||
return emitMeshPack(outDir, "village pack", {
|
||||
{"--gen-mesh-house", handleHouse, "house"},
|
||||
{"--gen-mesh-outhouse", handleOuthouse, "outhouse"},
|
||||
{"--gen-mesh-chimney", handleChimney, "chimney"},
|
||||
{"--gen-mesh-hitching-post", handleHitchingPost, "hitching"},
|
||||
{"--gen-mesh-well", handleWell, "well"},
|
||||
{"--gen-mesh-signpost", handleSignpost, "signpost"},
|
||||
{"--gen-mesh-haystack", handleHaystack, "haystack"},
|
||||
});
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
namespace {
|
||||
|
|
@ -6736,6 +6755,7 @@ constexpr MeshEntry kMeshTable[] = {
|
|||
{"--gen-mesh-gravel-pile", 1, handleGravelPile},
|
||||
{"--gen-camp-pack", 1, handleGenCampPack},
|
||||
{"--gen-blacksmith-pack", 1, handleGenBlacksmithPack},
|
||||
{"--gen-village-pack", 1, handleGenVillagePack},
|
||||
{"--gen-mesh-table", 1, handleTable},
|
||||
{"--gen-mesh-lamppost", 1, handleLamppost},
|
||||
{"--gen-mesh-bed", 1, handleBed},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue