boardgame-core/commands/tile.place.json

44 lines
858 B
JSON

{
"id": "tile-place-001",
"name": "Place Tile",
"description": "Place a terrain tile on the board with rotation",
"steps": [
{
"action": "createTile",
"params": {
"id": "tile-forest-1",
"pattern": "forest",
"rotation": 90,
"name": "Forest Tile 1"
}
},
{
"action": "createPlacement",
"params": {
"id": "placement-tile-1",
"partId": "tile-forest-1",
"regionId": "board",
"position": {
"x": 2,
"y": 3
},
"rotation": 90,
"faceUp": true
}
},
{
"action": "setSlot",
"params": {
"regionId": "board",
"key": "B3",
"placementId": "placement-tile-1"
}
}
],
"metadata": {
"version": "1.0",
"category": "action",
"tileGame": true
}
}