packages: the editor's schema attributes on every .lres-bound record (@Ref, @OneOf, @Asset, @Unit, @Range, @Color, @Text, @Derived, @Key; @AppendOnly/@ByKey) - annotation only
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
48bf705ca4
commit
5197cf4cb8
11 changed files with 56 additions and 49 deletions
|
|
@ -8,24 +8,25 @@ export const HINTS_URGENT: int = 3 # do it or lose the day
|
|||
# the game's: `icon` / `picN` name a glyph, `item` / `itemN` a thing's picture instead (-1: none).
|
||||
export property HintCard {
|
||||
key: string = ""
|
||||
urgency: int = HINTS_TIP
|
||||
@OneOf(HINTS_TIP, HINTS_NOTE, HINTS_WARN, HINTS_URGENT) urgency: int = HINTS_TIP
|
||||
icon: string = ""
|
||||
item: int = -1
|
||||
line: string = "" # the chip on the rail: five or six words
|
||||
title: string = "" # the card's heading
|
||||
s1: string = "" # three steps, each with a picture
|
||||
s2: string = ""
|
||||
s3: string = ""
|
||||
@Ref(Items) item: int = -1
|
||||
@Text line: string = "" # the chip on the rail: five or six words
|
||||
@Text title: string = "" # the card's heading
|
||||
@Text s1: string = "" # three steps, each with a picture
|
||||
@Text s2: string = ""
|
||||
@Text s3: string = ""
|
||||
pic1: string = ""
|
||||
pic2: string = ""
|
||||
pic3: string = ""
|
||||
item1: int = -1
|
||||
item2: int = -1
|
||||
item3: int = -1
|
||||
later: string = "" # how not to be here next time
|
||||
@Ref(Items) item1: int = -1
|
||||
@Ref(Items) item2: int = -1
|
||||
@Ref(Items) item3: int = -1
|
||||
@Text @Multiline later: string = "" # how not to be here next time
|
||||
}
|
||||
|
||||
# the game's cards; a card's mute is kept by its key, so their order is free
|
||||
@ByKey
|
||||
export open registry Hints of HintCard as HINT
|
||||
|
||||
export const HINTS_F_OPENED: int = 0 # a card was opened, or the arrows moved to another
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue