@neocompose/cli 0.83.0 → 0.84.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/dist/neo-runtime.mjs +946 -583
- package/dist/test-worker.mjs +3695 -3411
- package/package.json +1 -1
- package/skills/neocompose-cli/SKILL.md +1 -1
- package/skills/neocompose-cli/references/animation-and-world-authoring.md +7 -0
- package/skills/neocompose-cli/references/cli-development.md +1 -1
- package/skills/neocompose-cli/references/declarations-and-construction.md +9 -0
package/package.json
CHANGED
|
@@ -65,6 +65,13 @@ cell two rows up without building a translated pattern. These queries track
|
|
|
65
65
|
empty cells as well as hits, so a getter updates when a new neighbor appears.
|
|
66
66
|
Calling them on an unplaced object is an error.
|
|
67
67
|
|
|
68
|
+
`this.GetArea()` returns the nearest `NeoTileGrid` that owns the object or
|
|
69
|
+
tile, or null when no grid owns it. It works on any `NeoObjectBase` or
|
|
70
|
+
`NeoTile`: a sprite child, an object held in another object's field, or a tile
|
|
71
|
+
in a nested layer link answers with its placed root's grid. A type argument
|
|
72
|
+
filters the answer, so `this.GetArea<FarmGrid>()` is null in any other grid.
|
|
73
|
+
It sees spawns, moves, and removals made earlier in the same evaluation.
|
|
74
|
+
|
|
68
75
|
`WithCenter`, `WithoutCenter`, `Translate`, and `Union` return patterns.
|
|
69
76
|
`Union` removes duplicate offsets while preserving first occurrence order.
|
|
70
77
|
Box, Cross, and Line include the origin by default. Use `excluding: .Center`
|
|
@@ -129,7 +129,7 @@ wrappers.
|
|
|
129
129
|
The marker near the top of `SKILL.md` must exactly match the package version:
|
|
130
130
|
|
|
131
131
|
```html
|
|
132
|
-
<!-- reviewed-through-cli: 0.
|
|
132
|
+
<!-- reviewed-through-cli: 0.84.1 -->
|
|
133
133
|
```
|
|
134
134
|
|
|
135
135
|
The quoted version above is checked too, so this instruction cannot go stale
|
|
@@ -515,6 +515,15 @@ Do not default parameters of deferred functions, delegates, actions,
|
|
|
515
515
|
closures, or overrides. Enum defaults store the option id, so renaming the
|
|
516
516
|
option changes the emitted `.Option` spelling without a record change.
|
|
517
517
|
|
|
518
|
+
Editing a stored object's constructor arguments rebuilds it under the same
|
|
519
|
+
identity. Initializers that read that object, including collection projections,
|
|
520
|
+
wait for its replacement before evaluating its members.
|
|
521
|
+
|
|
522
|
+
Stored objects created with an implicit constructor may have required fields
|
|
523
|
+
settled in their object body. Keep that body when editing initializer behavior
|
|
524
|
+
or adding a parameterless constructor; an empty stored argument list does not
|
|
525
|
+
require inventing constructor arguments.
|
|
526
|
+
|
|
518
527
|
## Required constructors and settlement
|
|
519
528
|
|
|
520
529
|
Put one required constructor on the class header when the entire class body
|