feat(api): floor objects, doors, signs, and atomic structures (#9) - #357
Open
Aduersarius wants to merge 1 commit into
Open
feat(api): floor objects, doors, signs, and atomic structures (#9)#357Aduersarius wants to merge 1 commit into
Aduersarius wants to merge 1 commit into
Conversation
…ndefi#9) Extends world-builder drafts with catalog-validated floor objects (amount + atomic move), multi-tile layer 3/4 structures, doors that sync blocked state, and text signs. Pure placement helpers are unit-tested; amount/meta survive publish.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Ships OpenAO #9 on top of the existing
/construccionworld-builder draft/publish stack.objIndex, optionalamount(capped), atomic move, remove via existing entity deletepaintTilesTX) + bounding-box metadata for entity-with-area editingopen|closedstate; closed doors writeblocked=trueon layer-1 override in the same TXmetagame_map_tile_entities.amount+meta; publish copies both so they survive reloadapi/src/lib/mapObjectPlacement.ts,api/src/tests/mapObjectPlacement.test.ts(6/6)Closes #9
Admin routes
PUT /admin/game-data/maps/:mapNum/objectsPOST /admin/game-data/maps/:mapNum/objects/movePUT /admin/game-data/maps/:mapNum/structuresPUT /admin/game-data/maps/:mapNum/doorsPOST /admin/game-data/maps/:mapNum/doors/:x/:y/statePUT /admin/game-data/maps/:mapNum/signsDifferentiation vs open PRs
map-entitiesservice bundled with protocol/FE/converter kitchen-sink. This PR is #9-only, wired into realworldBuilderdrafts + Postgres + admin HTTP.Test plan
node --experimental-strip-types --test api/src/tests/mapObjectPlacement.test.ts(6/6)amount/metacolumns)GET /maps/:id/overridesentities include amount/metaobjIndex→ 404No txs/keys/funds involved.