docs: update SCENE_JSON_SPEC with current types, deprecate flag fields

This commit is contained in:
2026-06-12 21:26:00 +08:00
parent 6a4ff7a328
commit 5a4acfc6bb
2 changed files with 45 additions and 3 deletions

View File

@@ -53,12 +53,12 @@ export interface Hotspot {
export interface Condition {
variable: string
op: '>' | '<' | '>=' | '<=' | '==' | '!=' | 'hasFlag'
op: '>' | '<' | '>=' | '<=' | '==' | '!=' | 'hasFlag' // @deprecated hasFlag will be removed
value: number | string | boolean
}
export interface Effect {
type: 'set' | 'add' | 'toggleFlag' | 'triggerEvent'
type: 'set' | 'add' | 'toggleFlag' | 'triggerEvent' // @deprecated toggleFlag will be removed
target: string
value?: number | string | boolean
}