Drop the per-list item declaration; every item carries its own kind

A list no longer says what its items are. ListDef.items, ListDef.fields,
ListFieldDef.items and SetListItemsCommand are gone; the single seam is
src/core/properties/listItems.ts. JSON already tells number, text, boolean
and struct apart, so only two kinds need a tag: {"$color": n} and the new
{"$texture": id}. Field names cannot start with "$", so a tag never
collides with a struct field. On a data link a texture item arrives as
its bare id; the graph has no images.

List tab: the mark in front of each row is the kind picker, "+ Item"
asks for the kind, both are ordinary value edits (one undo step). A list
inside a struct field only offers the flat kinds because the depth rule
forbids a struct item there (ListAccess.kinds); the menu used to offer
it and silently do nothing.

Legacy lists that declared items: 'color' are tagged on load.

Actor demo: the four walk animations and four standing frames live in
two list variables of texture items indexed by facing (Item at), so the
graph can be rebuilt in the editor. The stand frames get their grid ids
back; 44 nodes instead of 46.

Also: the user's edits to on-start-during-play.md and the new note
reseed-because-of-list.md.

Verified: check.sh 794 tests, full e2e 631 checks, smokes 24/19/20.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
rootandClaude Fable 5.1 committed 2026-09-12 13:35:02 +02:00
1 parent e147dd6d21
commit 11c900c998
34 files changed
+1218 -640

No files matched your search

+5
View File
@@ -3,3 +3,8 @@ Ein im Play neu angelegter `On start`-Node feuert nicht für Behaviors, die scho
Stand: seit der Graph im Play bearbeitbar ist, wirken Änderungen ab dem nächsten Frame — nur `On start` nicht, weil der Start schon vorbei ist.
Abzuklären: nachträglich feuern (einmal pro laufender Instanz) oder bewusst so lassen und im Editor darauf hinweisen.
EDIT auch noch abzuklären: Wann feuert `On start`:
- nur beim ersten Frame?
- muss das behavior enabled sein?
- wenn ein behavior später enabled wird, feuert `On start` dann noch einmalig?
+8
View File
@@ -0,0 +1,8 @@
1. es gibt das Node "String", der typ heißt aber "Text", das ist inkonsistent
2. "Item at" oder "Set item" node: index hat ".000" nachkommastellen im inspector, ist aber ein integer
3. neuer typ "Texture" momentan nur in einer liste hinzufügbar => es gibt kein "Texture" node, man kann den typ auch nicht bei variablen aussuchen
4. alle project seeds überarbeiten, sodass keine migration mehr notwendig ist und reseeden.
5. checken ob es projects gibt (ohne seed) die auch noch eine migration erfordern.
6. migration code entfernen
7. unnötige comments auch wieder entfernen