feat(bindings): index-addressed GraphicsArchive with options objects #441
No reviewers
Labels
No labels
area/ci-release
area/cli
area/docs
area/dungeon
area/ftl
area/graphics
area/gui
area/music
area/saves
area/tooling
port/amiga
port/dos
port/fm-towns
port/mac
port/pc98
port/sega-cd
priority/high
priority/low
priority/medium
type/bug
type/chore
type/docs
type/feature
type/research
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
jqueuniet/dm2-tools!441
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/440-graphics-api"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Part of #440 (1/2). Additive; nothing breaks.
entriesgainsindex;find(cls1, cls2, cls3, cls4, {language})returns one. Records sharing a tuple (language variants of a text or charsheet image) are each addressable.Ent1::find_index,Ent1::find_index_in_language,Archive::decode_image_recordin dm2-graphics.GraphicsArchivemethodsheader,entries,find,labels,image,icon,sound,music,font,text,palette.dm2_convert::graphics,serde(default, deny_unknown_fields),#[non_exhaustive]:.d.ts(options?: ImageOptions); routed through a JSON value, since deserializing straight from a JS object ignores unknown keys;serde-wasm-bindgen(MIT).New methods are byte-identical to the tuple-addressed functions on DOS and Amiga (test in this PR).
https://claude.ai/code/session_01SnENBXnZbhNNrojZT5jbJ7