@datamoc/mw_games 0.44.2 → 0.46.0
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/3d/models.d.ts +1 -0
- package/3d/models.js +1 -0
- package/3d.d.ts +1 -0
- package/3d.js +1 -0
- package/README.md +5 -732
- package/actors.d.ts +1 -0
- package/actors.js +1 -0
- package/ai/lua.d.ts +1 -0
- package/ai/lua.js +1 -0
- package/ai.d.ts +1 -0
- package/ai.js +1 -0
- package/assets/binary.d.ts +1 -0
- package/assets/binary.js +1 -0
- package/assets/paths.d.ts +1 -0
- package/assets/paths.js +1 -0
- package/assets.d.ts +1 -0
- package/assets.js +1 -0
- package/audio.d.ts +1 -0
- package/audio.js +1 -0
- package/battle.d.ts +1 -0
- package/battle.js +1 -0
- package/board.d.ts +1 -0
- package/board.js +1 -0
- package/core.d.ts +1 -0
- package/core.js +1 -0
- package/headless.d.ts +1 -0
- package/headless.js +1 -0
- package/i18n.d.ts +1 -0
- package/i18n.js +1 -0
- package/index.d.ts +1 -0
- package/index.js +1 -0
- package/mwl/presentation.d.ts +1 -0
- package/mwl/presentation.js +1 -0
- package/mwl/pyroeis.d.ts +1 -0
- package/mwl/pyroeis.js +1 -0
- package/mwl.d.ts +1 -0
- package/mwl.js +1 -0
- package/package.json +212 -394
- package/physics/xpbd.d.ts +1 -0
- package/physics/xpbd.js +1 -0
- package/physics.d.ts +1 -0
- package/physics.js +1 -0
- package/roguelike.d.ts +1 -0
- package/roguelike.js +1 -0
- package/rpg.d.ts +1 -0
- package/rpg.js +1 -0
- package/simulation.d.ts +1 -0
- package/simulation.js +1 -0
- package/skeleton.d.ts +1 -0
- package/skeleton.js +1 -0
- package/testing.d.ts +1 -0
- package/testing.js +1 -0
- package/threads.d.ts +1 -0
- package/threads.js +1 -0
- package/tools/asset-report.d.mts +1 -37
- package/tools/asset-report.mjs +1 -157
- package/tools/audio.d.mts +1 -75
- package/tools/audio.mjs +1 -437
- package/tools/audit-adoptions.d.mts +1 -65
- package/tools/audit-adoptions.mjs +1 -252
- package/tools/benchmark-browser.d.mts +1 -33
- package/tools/benchmark-browser.mjs +1 -169
- package/tools/benchmark-history.d.mts +1 -8
- package/tools/benchmark-history.mjs +1 -31
- package/tools/browser-driver.d.mts +1 -122
- package/tools/browser-driver.mjs +1 -861
- package/tools/browser-smoke.d.mts +1 -30
- package/tools/browser-smoke.mjs +1 -184
- package/tools/build-tablebases.d.mts +1 -22
- package/tools/build-tablebases.mjs +1 -557
- package/tools/bundle-size.d.mts +1 -11
- package/tools/bundle-size.mjs +1 -142
- package/tools/classic-html.d.mts +1 -6
- package/tools/classic-html.mjs +1 -69
- package/tools/compile-openings.d.mts +1 -20
- package/tools/compile-openings.mjs +1 -138
- package/tools/compile-resources.d.mts +1 -66
- package/tools/compile-resources.mjs +1 -406
- package/tools/compress-dist.d.mts +1 -42
- package/tools/compress-dist.mjs +1 -193
- package/tools/csp.d.mts +1 -7
- package/tools/csp.mjs +1 -65
- package/tools/emit-page.d.mts +1 -61
- package/tools/emit-page.mjs +1 -273
- package/tools/extract-html.d.mts +1 -18
- package/tools/extract-html.mjs +1 -235
- package/tools/extract-rgssad.d.mts +1 -5
- package/tools/extract-rgssad.mjs +1 -64
- package/tools/find-chrome.d.mts +1 -7
- package/tools/find-chrome.mjs +1 -106
- package/tools/i18n-edit.d.mts +1 -29
- package/tools/i18n-edit.mjs +1 -748
- package/tools/init.d.mts +1 -5
- package/tools/init.mjs +1 -155
- package/tools/make-example-assets.d.mts +1 -2
- package/tools/make-example-assets.mjs +1 -731
- package/tools/multiplayer-server.d.mts +1 -27
- package/tools/multiplayer-server.mjs +1 -199
- package/tools/play-uci.d.mts +1 -26
- package/tools/play-uci.mjs +1 -205
- package/tools/sbom.d.mts +1 -83
- package/tools/sbom.mjs +1 -340
- package/tools/single-file.d.mts +1 -33
- package/tools/single-file.mjs +1 -239
- package/tools/soundfonts.d.mts +1 -79
- package/tools/soundfonts.mjs +1 -301
- package/tools/svg-optimise.d.mts +1 -8
- package/tools/svg-optimise.mjs +1 -45
- package/tools/verify-scenarios.d.mts +1 -15
- package/tools/verify-scenarios.mjs +1 -133
- package/tools/vite.d.mts +1 -17
- package/tools/vite.mjs +1 -102
- package/tools/webp-convert.d.mts +1 -8
- package/tools/webp-convert.mjs +1 -98
- package/two-d/pixi-interop.d.ts +1 -0
- package/two-d/pixi-interop.js +1 -0
- package/two-d/presentation.d.ts +1 -0
- package/two-d/presentation.js +1 -0
- package/two-d/render.d.ts +1 -0
- package/two-d/render.js +1 -0
- package/two-d/stage.d.ts +1 -0
- package/two-d/stage.js +1 -0
- package/two-d/ui.d.ts +1 -0
- package/two-d/ui.js +1 -0
- package/two-d.d.ts +1 -0
- package/two-d.js +1 -0
- package/world.d.ts +1 -0
- package/world.js +1 -0
- package/CHANGELOG.md +0 -3196
- package/LICENSE +0 -373
- package/MWG - Best Practices.md +0 -97
- package/MWG - Deep Code and Architecture Review.md +0 -238
- package/REFERENCE.md +0 -2256
- package/api-surface.json +0 -18128
- package/data/microgm-essential.PROVENANCE.md +0 -13
- package/data/microgm-essential.sf2 +0 -0
- package/data/microgm-opt.PROVENANCE.md +0 -23
- package/data/microgm-opt.sf2 +0 -0
- package/data/soundfont-catalog.json +0 -191
- package/dist/actors/Advancement.d.ts +0 -90
- package/dist/actors/Advancement.d.ts.map +0 -1
- package/dist/actors/Advancement.js +0 -115
- package/dist/actors/Advancement.js.map +0 -1
- package/dist/actors/Affix.d.ts +0 -96
- package/dist/actors/Affix.d.ts.map +0 -1
- package/dist/actors/Affix.js +0 -68
- package/dist/actors/Affix.js.map +0 -1
- package/dist/actors/Appearances.d.ts +0 -48
- package/dist/actors/Appearances.d.ts.map +0 -1
- package/dist/actors/Appearances.js +0 -62
- package/dist/actors/Appearances.js.map +0 -1
- package/dist/actors/Aura.d.ts +0 -45
- package/dist/actors/Aura.d.ts.map +0 -1
- package/dist/actors/Aura.js +0 -85
- package/dist/actors/Aura.js.map +0 -1
- package/dist/actors/Barrier.d.ts +0 -60
- package/dist/actors/Barrier.d.ts.map +0 -1
- package/dist/actors/Barrier.js +0 -70
- package/dist/actors/Barrier.js.map +0 -1
- package/dist/actors/Charges.d.ts +0 -66
- package/dist/actors/Charges.d.ts.map +0 -1
- package/dist/actors/Charges.js +0 -61
- package/dist/actors/Charges.js.map +0 -1
- package/dist/actors/EntityTemplate.d.ts +0 -127
- package/dist/actors/EntityTemplate.d.ts.map +0 -1
- package/dist/actors/EntityTemplate.js +0 -117
- package/dist/actors/EntityTemplate.js.map +0 -1
- package/dist/actors/Equipment.d.ts +0 -88
- package/dist/actors/Equipment.d.ts.map +0 -1
- package/dist/actors/Equipment.js +0 -107
- package/dist/actors/Equipment.js.map +0 -1
- package/dist/actors/Inventory.d.ts +0 -123
- package/dist/actors/Inventory.d.ts.map +0 -1
- package/dist/actors/Inventory.js +0 -165
- package/dist/actors/Inventory.js.map +0 -1
- package/dist/actors/ItemState.d.ts +0 -43
- package/dist/actors/ItemState.d.ts.map +0 -1
- package/dist/actors/ItemState.js +0 -63
- package/dist/actors/ItemState.js.map +0 -1
- package/dist/actors/ItemStatusEffect.d.ts +0 -40
- package/dist/actors/ItemStatusEffect.d.ts.map +0 -1
- package/dist/actors/ItemStatusEffect.js +0 -39
- package/dist/actors/ItemStatusEffect.js.map +0 -1
- package/dist/actors/Loot.d.ts +0 -38
- package/dist/actors/Loot.d.ts.map +0 -1
- package/dist/actors/Loot.js +0 -28
- package/dist/actors/Loot.js.map +0 -1
- package/dist/actors/Progression.d.ts +0 -52
- package/dist/actors/Progression.d.ts.map +0 -1
- package/dist/actors/Progression.js +0 -59
- package/dist/actors/Progression.js.map +0 -1
- package/dist/actors/Resource.d.ts +0 -53
- package/dist/actors/Resource.d.ts.map +0 -1
- package/dist/actors/Resource.js +0 -57
- package/dist/actors/Resource.js.map +0 -1
- package/dist/actors/Scaling.d.ts +0 -30
- package/dist/actors/Scaling.d.ts.map +0 -1
- package/dist/actors/Scaling.js +0 -9
- package/dist/actors/Scaling.js.map +0 -1
- package/dist/actors/Shop.d.ts +0 -40
- package/dist/actors/Shop.d.ts.map +0 -1
- package/dist/actors/Shop.js +0 -36
- package/dist/actors/Shop.js.map +0 -1
- package/dist/actors/SkillPoints.d.ts +0 -72
- package/dist/actors/SkillPoints.d.ts.map +0 -1
- package/dist/actors/SkillPoints.js +0 -87
- package/dist/actors/SkillPoints.js.map +0 -1
- package/dist/actors/StatBlock.d.ts +0 -86
- package/dist/actors/StatBlock.d.ts.map +0 -1
- package/dist/actors/StatBlock.js +0 -110
- package/dist/actors/StatBlock.js.map +0 -1
- package/dist/actors/StatusEffect.d.ts +0 -67
- package/dist/actors/StatusEffect.d.ts.map +0 -1
- package/dist/actors/StatusEffect.js +0 -59
- package/dist/actors/StatusEffect.js.map +0 -1
- package/dist/actors/Support.d.ts +0 -43
- package/dist/actors/Support.d.ts.map +0 -1
- package/dist/actors/Support.js +0 -71
- package/dist/actors/Support.js.map +0 -1
- package/dist/actors/Traits.d.ts +0 -43
- package/dist/actors/Traits.d.ts.map +0 -1
- package/dist/actors/Traits.js +0 -35
- package/dist/actors/Traits.js.map +0 -1
- package/dist/actors/craft.d.ts +0 -63
- package/dist/actors/craft.d.ts.map +0 -1
- package/dist/actors/craft.js +0 -86
- package/dist/actors/craft.js.map +0 -1
- package/dist/actors/index.d.ts +0 -46
- package/dist/actors/index.d.ts.map +0 -1
- package/dist/actors/index.js +0 -24
- package/dist/actors/index.js.map +0 -1
- package/dist/actors/skillCheck.d.ts +0 -21
- package/dist/actors/skillCheck.d.ts.map +0 -1
- package/dist/actors/skillCheck.js +0 -24
- package/dist/actors/skillCheck.js.map +0 -1
- package/dist/ai/Heuristics.d.ts +0 -240
- package/dist/ai/Heuristics.d.ts.map +0 -1
- package/dist/ai/Heuristics.js +0 -298
- package/dist/ai/Heuristics.js.map +0 -1
- package/dist/ai/Neural.d.ts +0 -65
- package/dist/ai/Neural.d.ts.map +0 -1
- package/dist/ai/Neural.js +0 -169
- package/dist/ai/Neural.js.map +0 -1
- package/dist/ai/Suggest.d.ts +0 -54
- package/dist/ai/Suggest.d.ts.map +0 -1
- package/dist/ai/Suggest.js +0 -48
- package/dist/ai/Suggest.js.map +0 -1
- package/dist/ai/index.d.ts +0 -136
- package/dist/ai/index.d.ts.map +0 -1
- package/dist/ai/index.js +0 -207
- package/dist/ai/index.js.map +0 -1
- package/dist/ai/lua.d.ts +0 -74
- package/dist/ai/lua.d.ts.map +0 -1
- package/dist/ai/lua.js +0 -217
- package/dist/ai/lua.js.map +0 -1
- package/dist/ai/score.d.ts +0 -162
- package/dist/ai/score.d.ts.map +0 -1
- package/dist/ai/score.js +0 -147
- package/dist/ai/score.js.map +0 -1
- package/dist/ai/search.d.ts +0 -108
- package/dist/ai/search.d.ts.map +0 -1
- package/dist/ai/search.js +0 -148
- package/dist/ai/search.js.map +0 -1
- package/dist/assets/ByteProgress.d.ts +0 -37
- package/dist/assets/ByteProgress.d.ts.map +0 -1
- package/dist/assets/ByteProgress.js +0 -54
- package/dist/assets/ByteProgress.js.map +0 -1
- package/dist/assets/Streaming.d.ts +0 -56
- package/dist/assets/Streaming.d.ts.map +0 -1
- package/dist/assets/Streaming.js +0 -100
- package/dist/assets/Streaming.js.map +0 -1
- package/dist/assets/SvgParts.d.ts +0 -31
- package/dist/assets/SvgParts.d.ts.map +0 -1
- package/dist/assets/SvgParts.js +0 -54
- package/dist/assets/SvgParts.js.map +0 -1
- package/dist/assets/SvgSource.d.ts +0 -3
- package/dist/assets/SvgSource.d.ts.map +0 -1
- package/dist/assets/SvgSource.js +0 -22
- package/dist/assets/SvgSource.js.map +0 -1
- package/dist/assets/binary.d.ts +0 -52
- package/dist/assets/binary.d.ts.map +0 -1
- package/dist/assets/binary.js +0 -57
- package/dist/assets/binary.js.map +0 -1
- package/dist/assets/index.d.ts +0 -27
- package/dist/assets/index.d.ts.map +0 -1
- package/dist/assets/index.js +0 -20
- package/dist/assets/index.js.map +0 -1
- package/dist/assets/loader.d.ts +0 -70
- package/dist/assets/loader.d.ts.map +0 -1
- package/dist/assets/loader.js +0 -115
- package/dist/assets/loader.js.map +0 -1
- package/dist/assets/paths.d.ts +0 -73
- package/dist/assets/paths.d.ts.map +0 -1
- package/dist/assets/paths.js +0 -91
- package/dist/assets/paths.js.map +0 -1
- package/dist/assets/svg.d.ts +0 -87
- package/dist/assets/svg.d.ts.map +0 -1
- package/dist/assets/svg.js +0 -166
- package/dist/assets/svg.js.map +0 -1
- package/dist/audio/AdaptiveMusic.d.ts +0 -85
- package/dist/audio/AdaptiveMusic.d.ts.map +0 -1
- package/dist/audio/AdaptiveMusic.js +0 -230
- package/dist/audio/AdaptiveMusic.js.map +0 -1
- package/dist/audio/AudioLoader.d.ts +0 -33
- package/dist/audio/AudioLoader.d.ts.map +0 -1
- package/dist/audio/AudioLoader.js +0 -58
- package/dist/audio/AudioLoader.js.map +0 -1
- package/dist/audio/AudioViews.d.ts +0 -70
- package/dist/audio/AudioViews.d.ts.map +0 -1
- package/dist/audio/AudioViews.js +0 -119
- package/dist/audio/AudioViews.js.map +0 -1
- package/dist/audio/BusBudget.d.ts +0 -89
- package/dist/audio/BusBudget.d.ts.map +0 -1
- package/dist/audio/BusBudget.js +0 -120
- package/dist/audio/BusBudget.js.map +0 -1
- package/dist/audio/Captions.d.ts +0 -27
- package/dist/audio/Captions.d.ts.map +0 -1
- package/dist/audio/Captions.js +0 -16
- package/dist/audio/Captions.js.map +0 -1
- package/dist/audio/Channels.d.ts +0 -282
- package/dist/audio/Channels.d.ts.map +0 -1
- package/dist/audio/Channels.js +0 -573
- package/dist/audio/Channels.js.map +0 -1
- package/dist/audio/CoreHost.d.ts +0 -114
- package/dist/audio/CoreHost.d.ts.map +0 -1
- package/dist/audio/CoreHost.js +0 -335
- package/dist/audio/CoreHost.js.map +0 -1
- package/dist/audio/DecoderGuard.d.ts +0 -139
- package/dist/audio/DecoderGuard.d.ts.map +0 -1
- package/dist/audio/DecoderGuard.js +0 -208
- package/dist/audio/DecoderGuard.js.map +0 -1
- package/dist/audio/Fft.d.ts +0 -3
- package/dist/audio/Fft.d.ts.map +0 -1
- package/dist/audio/Fft.js +0 -45
- package/dist/audio/Fft.js.map +0 -1
- package/dist/audio/LoopTags.d.ts +0 -55
- package/dist/audio/LoopTags.d.ts.map +0 -1
- package/dist/audio/LoopTags.js +0 -136
- package/dist/audio/LoopTags.js.map +0 -1
- package/dist/audio/Midi.d.ts +0 -219
- package/dist/audio/Midi.d.ts.map +0 -1
- package/dist/audio/Midi.js +0 -409
- package/dist/audio/Midi.js.map +0 -1
- package/dist/audio/MidiRender.d.ts +0 -144
- package/dist/audio/MidiRender.d.ts.map +0 -1
- package/dist/audio/MidiRender.js +0 -448
- package/dist/audio/MidiRender.js.map +0 -1
- package/dist/audio/MidiSynth.d.ts +0 -147
- package/dist/audio/MidiSynth.d.ts.map +0 -1
- package/dist/audio/MidiSynth.js +0 -205
- package/dist/audio/MidiSynth.js.map +0 -1
- package/dist/audio/Music.d.ts +0 -70
- package/dist/audio/Music.d.ts.map +0 -1
- package/dist/audio/Music.js +0 -191
- package/dist/audio/Music.js.map +0 -1
- package/dist/audio/MusicPlayer.d.ts +0 -80
- package/dist/audio/MusicPlayer.d.ts.map +0 -1
- package/dist/audio/MusicPlayer.js +0 -147
- package/dist/audio/MusicPlayer.js.map +0 -1
- package/dist/audio/Orchestrator.d.ts +0 -58
- package/dist/audio/Orchestrator.d.ts.map +0 -1
- package/dist/audio/Orchestrator.js +0 -74
- package/dist/audio/Orchestrator.js.map +0 -1
- package/dist/audio/Playable.d.ts +0 -38
- package/dist/audio/Playable.d.ts.map +0 -1
- package/dist/audio/Playable.js +0 -29
- package/dist/audio/Playable.js.map +0 -1
- package/dist/audio/Positional.d.ts +0 -133
- package/dist/audio/Positional.d.ts.map +0 -1
- package/dist/audio/Positional.js +0 -138
- package/dist/audio/Positional.js.map +0 -1
- package/dist/audio/Resample.d.ts +0 -61
- package/dist/audio/Resample.d.ts.map +0 -1
- package/dist/audio/Resample.js +0 -97
- package/dist/audio/Resample.js.map +0 -1
- package/dist/audio/SampleDecoder.d.ts +0 -55
- package/dist/audio/SampleDecoder.d.ts.map +0 -1
- package/dist/audio/SampleDecoder.js +0 -74
- package/dist/audio/SampleDecoder.js.map +0 -1
- package/dist/audio/Settings.d.ts +0 -99
- package/dist/audio/Settings.d.ts.map +0 -1
- package/dist/audio/Settings.js +0 -134
- package/dist/audio/Settings.js.map +0 -1
- package/dist/audio/Sfx.d.ts +0 -148
- package/dist/audio/Sfx.d.ts.map +0 -1
- package/dist/audio/Sfx.js +0 -213
- package/dist/audio/Sfx.js.map +0 -1
- package/dist/audio/Sound.d.ts +0 -57
- package/dist/audio/Sound.d.ts.map +0 -1
- package/dist/audio/Sound.js +0 -79
- package/dist/audio/Sound.js.map +0 -1
- package/dist/audio/SoundFont.d.ts +0 -192
- package/dist/audio/SoundFont.d.ts.map +0 -1
- package/dist/audio/SoundFont.js +0 -862
- package/dist/audio/SoundFont.js.map +0 -1
- package/dist/audio/SpectralDistance.d.ts +0 -34
- package/dist/audio/SpectralDistance.d.ts.map +0 -1
- package/dist/audio/SpectralDistance.js +0 -64
- package/dist/audio/SpectralDistance.js.map +0 -1
- package/dist/audio/StreamChannel.d.ts +0 -150
- package/dist/audio/StreamChannel.d.ts.map +0 -1
- package/dist/audio/StreamChannel.js +0 -390
- package/dist/audio/StreamChannel.js.map +0 -1
- package/dist/audio/StreamPlayable.d.ts +0 -73
- package/dist/audio/StreamPlayable.d.ts.map +0 -1
- package/dist/audio/StreamPlayable.js +0 -130
- package/dist/audio/StreamPlayable.js.map +0 -1
- package/dist/audio/Synth.d.ts +0 -64
- package/dist/audio/Synth.d.ts.map +0 -1
- package/dist/audio/Synth.js +0 -133
- package/dist/audio/Synth.js.map +0 -1
- package/dist/audio/SyxBank.d.ts +0 -73
- package/dist/audio/SyxBank.d.ts.map +0 -1
- package/dist/audio/SyxBank.js +0 -130
- package/dist/audio/SyxBank.js.map +0 -1
- package/dist/audio/Underrun.d.ts +0 -25
- package/dist/audio/Underrun.d.ts.map +0 -1
- package/dist/audio/Underrun.js +0 -18
- package/dist/audio/Underrun.js.map +0 -1
- package/dist/audio/Wav.d.ts +0 -56
- package/dist/audio/Wav.d.ts.map +0 -1
- package/dist/audio/Wav.js +0 -164
- package/dist/audio/Wav.js.map +0 -1
- package/dist/audio/WebMidi.d.ts +0 -58
- package/dist/audio/WebMidi.d.ts.map +0 -1
- package/dist/audio/WebMidi.js +0 -79
- package/dist/audio/WebMidi.js.map +0 -1
- package/dist/audio/humanize/Groove.d.ts +0 -80
- package/dist/audio/humanize/Groove.d.ts.map +0 -1
- package/dist/audio/humanize/Groove.js +0 -102
- package/dist/audio/humanize/Groove.js.map +0 -1
- package/dist/audio/humanize/GrooveConverter.d.ts +0 -49
- package/dist/audio/humanize/GrooveConverter.d.ts.map +0 -1
- package/dist/audio/humanize/GrooveConverter.js +0 -344
- package/dist/audio/humanize/GrooveConverter.js.map +0 -1
- package/dist/audio/humanize/GrooveExtractor.d.ts +0 -49
- package/dist/audio/humanize/GrooveExtractor.d.ts.map +0 -1
- package/dist/audio/humanize/GrooveExtractor.js +0 -179
- package/dist/audio/humanize/GrooveExtractor.js.map +0 -1
- package/dist/audio/humanize/GrooveHumanizer.d.ts +0 -34
- package/dist/audio/humanize/GrooveHumanizer.d.ts.map +0 -1
- package/dist/audio/humanize/GrooveHumanizer.js +0 -37
- package/dist/audio/humanize/GrooveHumanizer.js.map +0 -1
- package/dist/audio/humanize/Humanize.d.ts +0 -54
- package/dist/audio/humanize/Humanize.d.ts.map +0 -1
- package/dist/audio/humanize/Humanize.js +0 -239
- package/dist/audio/humanize/Humanize.js.map +0 -1
- package/dist/audio/humanize/HumanizerFactory.d.ts +0 -68
- package/dist/audio/humanize/HumanizerFactory.d.ts.map +0 -1
- package/dist/audio/humanize/HumanizerFactory.js +0 -84
- package/dist/audio/humanize/HumanizerFactory.js.map +0 -1
- package/dist/audio/humanize/LiteHumanizer.d.ts +0 -30
- package/dist/audio/humanize/LiteHumanizer.d.ts.map +0 -1
- package/dist/audio/humanize/LiteHumanizer.js +0 -35
- package/dist/audio/humanize/LiteHumanizer.js.map +0 -1
- package/dist/audio/humanize/Onsets.d.ts +0 -26
- package/dist/audio/humanize/Onsets.d.ts.map +0 -1
- package/dist/audio/humanize/Onsets.js +0 -121
- package/dist/audio/humanize/Onsets.js.map +0 -1
- package/dist/audio/index.d.ts +0 -75
- package/dist/audio/index.d.ts.map +0 -1
- package/dist/audio/index.js +0 -38
- package/dist/audio/index.js.map +0 -1
- package/dist/battle/AttackDialog.d.ts +0 -75
- package/dist/battle/AttackDialog.d.ts.map +0 -1
- package/dist/battle/AttackDialog.js +0 -115
- package/dist/battle/AttackDialog.js.map +0 -1
- package/dist/battle/AttackPreview.d.ts +0 -70
- package/dist/battle/AttackPreview.d.ts.map +0 -1
- package/dist/battle/AttackPreview.js +0 -78
- package/dist/battle/AttackPreview.js.map +0 -1
- package/dist/battle/BattleAI.d.ts +0 -40
- package/dist/battle/BattleAI.d.ts.map +0 -1
- package/dist/battle/BattleAI.js +0 -63
- package/dist/battle/BattleAI.js.map +0 -1
- package/dist/battle/BattleStats.d.ts +0 -45
- package/dist/battle/BattleStats.d.ts.map +0 -1
- package/dist/battle/BattleStats.js +0 -63
- package/dist/battle/BattleStats.js.map +0 -1
- package/dist/battle/Evolution.d.ts +0 -34
- package/dist/battle/Evolution.d.ts.map +0 -1
- package/dist/battle/Evolution.js +0 -37
- package/dist/battle/Evolution.js.map +0 -1
- package/dist/battle/Field.d.ts +0 -36
- package/dist/battle/Field.d.ts.map +0 -1
- package/dist/battle/Field.js +0 -31
- package/dist/battle/Field.js.map +0 -1
- package/dist/battle/Hooks.d.ts +0 -39
- package/dist/battle/Hooks.d.ts.map +0 -1
- package/dist/battle/Hooks.js +0 -38
- package/dist/battle/Hooks.js.map +0 -1
- package/dist/battle/Move.d.ts +0 -45
- package/dist/battle/Move.d.ts.map +0 -1
- package/dist/battle/Move.js +0 -23
- package/dist/battle/Move.js.map +0 -1
- package/dist/battle/Party.d.ts +0 -32
- package/dist/battle/Party.d.ts.map +0 -1
- package/dist/battle/Party.js +0 -62
- package/dist/battle/Party.js.map +0 -1
- package/dist/battle/Species.d.ts +0 -50
- package/dist/battle/Species.d.ts.map +0 -1
- package/dist/battle/Species.js +0 -41
- package/dist/battle/Species.js.map +0 -1
- package/dist/battle/StatStages.d.ts +0 -52
- package/dist/battle/StatStages.d.ts.map +0 -1
- package/dist/battle/StatStages.js +0 -51
- package/dist/battle/StatStages.js.map +0 -1
- package/dist/battle/TypeMatrix.d.ts +0 -25
- package/dist/battle/TypeMatrix.d.ts.map +0 -1
- package/dist/battle/TypeMatrix.js +0 -35
- package/dist/battle/TypeMatrix.js.map +0 -1
- package/dist/battle/UnitSelector.d.ts +0 -72
- package/dist/battle/UnitSelector.d.ts.map +0 -1
- package/dist/battle/UnitSelector.js +0 -117
- package/dist/battle/UnitSelector.js.map +0 -1
- package/dist/battle/Whiteboard.d.ts +0 -50
- package/dist/battle/Whiteboard.d.ts.map +0 -1
- package/dist/battle/Whiteboard.js +0 -94
- package/dist/battle/Whiteboard.js.map +0 -1
- package/dist/battle/index.d.ts +0 -26
- package/dist/battle/index.d.ts.map +0 -1
- package/dist/battle/index.js +0 -15
- package/dist/battle/index.js.map +0 -1
- package/dist/board/Army.d.ts +0 -92
- package/dist/board/Army.d.ts.map +0 -1
- package/dist/board/Army.js +0 -123
- package/dist/board/Army.js.map +0 -1
- package/dist/board/Classics.d.ts +0 -419
- package/dist/board/Classics.d.ts.map +0 -1
- package/dist/board/Classics.js +0 -754
- package/dist/board/Classics.js.map +0 -1
- package/dist/board/Engine.d.ts +0 -95
- package/dist/board/Engine.d.ts.map +0 -1
- package/dist/board/Engine.js +0 -545
- package/dist/board/Engine.js.map +0 -1
- package/dist/board/FogOfWar.d.ts +0 -79
- package/dist/board/FogOfWar.d.ts.map +0 -1
- package/dist/board/FogOfWar.js +0 -150
- package/dist/board/FogOfWar.js.map +0 -1
- package/dist/board/HexSkirmish.d.ts +0 -213
- package/dist/board/HexSkirmish.d.ts.map +0 -1
- package/dist/board/HexSkirmish.js +0 -268
- package/dist/board/HexSkirmish.js.map +0 -1
- package/dist/board/Tactics.d.ts +0 -212
- package/dist/board/Tactics.d.ts.map +0 -1
- package/dist/board/Tactics.js +0 -303
- package/dist/board/Tactics.js.map +0 -1
- package/dist/board/bitboard.d.ts +0 -132
- package/dist/board/bitboard.d.ts.map +0 -1
- package/dist/board/bitboard.js +0 -495
- package/dist/board/bitboard.js.map +0 -1
- package/dist/board/chess.d.ts +0 -167
- package/dist/board/chess.d.ts.map +0 -1
- package/dist/board/chess.js +0 -578
- package/dist/board/chess.js.map +0 -1
- package/dist/board/index.d.ts +0 -23
- package/dist/board/index.d.ts.map +0 -1
- package/dist/board/index.js +0 -12
- package/dist/board/index.js.map +0 -1
- package/dist/board/openings.d.ts +0 -58
- package/dist/board/openings.d.ts.map +0 -1
- package/dist/board/openings.js +0 -45
- package/dist/board/openings.js.map +0 -1
- package/dist/board/tablebase.d.ts +0 -118
- package/dist/board/tablebase.d.ts.map +0 -1
- package/dist/board/tablebase.js +0 -414
- package/dist/board/tablebase.js.map +0 -1
- package/dist/board/tourney.d.ts +0 -97
- package/dist/board/tourney.d.ts.map +0 -1
- package/dist/board/tourney.js +0 -1002
- package/dist/board/tourney.js.map +0 -1
- package/dist/core/Achievements.d.ts +0 -101
- package/dist/core/Achievements.d.ts.map +0 -1
- package/dist/core/Achievements.js +0 -141
- package/dist/core/Achievements.js.map +0 -1
- package/dist/core/ActionJournal.d.ts +0 -43
- package/dist/core/ActionJournal.d.ts.map +0 -1
- package/dist/core/ActionJournal.js +0 -77
- package/dist/core/ActionJournal.js.map +0 -1
- package/dist/core/Blob.d.ts +0 -79
- package/dist/core/Blob.d.ts.map +0 -1
- package/dist/core/Blob.js +0 -140
- package/dist/core/Blob.js.map +0 -1
- package/dist/core/Clone.d.ts +0 -31
- package/dist/core/Clone.d.ts.map +0 -1
- package/dist/core/Clone.js +0 -84
- package/dist/core/Clone.js.map +0 -1
- package/dist/core/Collection.d.ts +0 -59
- package/dist/core/Collection.d.ts.map +0 -1
- package/dist/core/Collection.js +0 -77
- package/dist/core/Collection.js.map +0 -1
- package/dist/core/Csv.d.ts +0 -74
- package/dist/core/Csv.d.ts.map +0 -1
- package/dist/core/Csv.js +0 -201
- package/dist/core/Csv.js.map +0 -1
- package/dist/core/DialogueText.d.ts +0 -72
- package/dist/core/DialogueText.d.ts.map +0 -1
- package/dist/core/DialogueText.js +0 -68
- package/dist/core/DialogueText.js.map +0 -1
- package/dist/core/Entity.d.ts +0 -42
- package/dist/core/Entity.d.ts.map +0 -1
- package/dist/core/Entity.js +0 -61
- package/dist/core/Entity.js.map +0 -1
- package/dist/core/Feedback.d.ts +0 -27
- package/dist/core/Feedback.d.ts.map +0 -1
- package/dist/core/Feedback.js +0 -33
- package/dist/core/Feedback.js.map +0 -1
- package/dist/core/FixedStepper.d.ts +0 -38
- package/dist/core/FixedStepper.d.ts.map +0 -1
- package/dist/core/FixedStepper.js +0 -56
- package/dist/core/FixedStepper.js.map +0 -1
- package/dist/core/Grid.d.ts +0 -179
- package/dist/core/Grid.d.ts.map +0 -1
- package/dist/core/Grid.js +0 -201
- package/dist/core/Grid.js.map +0 -1
- package/dist/core/Handles.d.ts +0 -42
- package/dist/core/Handles.d.ts.map +0 -1
- package/dist/core/Handles.js +0 -38
- package/dist/core/Handles.js.map +0 -1
- package/dist/core/Hex.d.ts +0 -79
- package/dist/core/Hex.d.ts.map +0 -1
- package/dist/core/Hex.js +0 -161
- package/dist/core/Hex.js.map +0 -1
- package/dist/core/Hooks.d.ts +0 -48
- package/dist/core/Hooks.d.ts.map +0 -1
- package/dist/core/Hooks.js +0 -33
- package/dist/core/Hooks.js.map +0 -1
- package/dist/core/HttpTransport.d.ts +0 -53
- package/dist/core/HttpTransport.d.ts.map +0 -1
- package/dist/core/HttpTransport.js +0 -108
- package/dist/core/HttpTransport.js.map +0 -1
- package/dist/core/Input.d.ts +0 -256
- package/dist/core/Input.d.ts.map +0 -1
- package/dist/core/Input.js +0 -557
- package/dist/core/Input.js.map +0 -1
- package/dist/core/JavaRandom.d.ts +0 -55
- package/dist/core/JavaRandom.d.ts.map +0 -1
- package/dist/core/JavaRandom.js +0 -81
- package/dist/core/JavaRandom.js.map +0 -1
- package/dist/core/Loading.d.ts +0 -65
- package/dist/core/Loading.d.ts.map +0 -1
- package/dist/core/Loading.js +0 -119
- package/dist/core/Loading.js.map +0 -1
- package/dist/core/Log.d.ts +0 -48
- package/dist/core/Log.d.ts.map +0 -1
- package/dist/core/Log.js +0 -59
- package/dist/core/Log.js.map +0 -1
- package/dist/core/Math.d.ts +0 -14
- package/dist/core/Math.d.ts.map +0 -1
- package/dist/core/Math.js +0 -16
- package/dist/core/Math.js.map +0 -1
- package/dist/core/Motion.d.ts +0 -47
- package/dist/core/Motion.d.ts.map +0 -1
- package/dist/core/Motion.js +0 -122
- package/dist/core/Motion.js.map +0 -1
- package/dist/core/Multiplayer.d.ts +0 -101
- package/dist/core/Multiplayer.d.ts.map +0 -1
- package/dist/core/Multiplayer.js +0 -156
- package/dist/core/Multiplayer.js.map +0 -1
- package/dist/core/News.d.ts +0 -51
- package/dist/core/News.d.ts.map +0 -1
- package/dist/core/News.js +0 -65
- package/dist/core/News.js.map +0 -1
- package/dist/core/Pathfinding.d.ts +0 -41
- package/dist/core/Pathfinding.d.ts.map +0 -1
- package/dist/core/Pathfinding.js +0 -86
- package/dist/core/Pathfinding.js.map +0 -1
- package/dist/core/PlayerInput.d.ts +0 -57
- package/dist/core/PlayerInput.d.ts.map +0 -1
- package/dist/core/PlayerInput.js +0 -82
- package/dist/core/PlayerInput.js.map +0 -1
- package/dist/core/Presentation.d.ts +0 -56
- package/dist/core/Presentation.d.ts.map +0 -1
- package/dist/core/Presentation.js +0 -78
- package/dist/core/Presentation.js.map +0 -1
- package/dist/core/Random.d.ts +0 -259
- package/dist/core/Random.d.ts.map +0 -1
- package/dist/core/Random.js +0 -408
- package/dist/core/Random.js.map +0 -1
- package/dist/core/Reactions.d.ts +0 -67
- package/dist/core/Reactions.d.ts.map +0 -1
- package/dist/core/Reactions.js +0 -92
- package/dist/core/Reactions.js.map +0 -1
- package/dist/core/Registry.d.ts +0 -31
- package/dist/core/Registry.d.ts.map +0 -1
- package/dist/core/Registry.js +0 -46
- package/dist/core/Registry.js.map +0 -1
- package/dist/core/Replay.d.ts +0 -126
- package/dist/core/Replay.d.ts.map +0 -1
- package/dist/core/Replay.js +0 -162
- package/dist/core/Replay.js.map +0 -1
- package/dist/core/ReplayFile.d.ts +0 -197
- package/dist/core/ReplayFile.d.ts.map +0 -1
- package/dist/core/ReplayFile.js +0 -257
- package/dist/core/ReplayFile.js.map +0 -1
- package/dist/core/RunHistory.d.ts +0 -54
- package/dist/core/RunHistory.d.ts.map +0 -1
- package/dist/core/RunHistory.js +0 -40
- package/dist/core/RunHistory.js.map +0 -1
- package/dist/core/Sanitize.d.ts +0 -101
- package/dist/core/Sanitize.d.ts.map +0 -1
- package/dist/core/Sanitize.js +0 -162
- package/dist/core/Sanitize.js.map +0 -1
- package/dist/core/Save.d.ts +0 -123
- package/dist/core/Save.d.ts.map +0 -1
- package/dist/core/Save.js +0 -216
- package/dist/core/Save.js.map +0 -1
- package/dist/core/SaveSync.d.ts +0 -43
- package/dist/core/SaveSync.d.ts.map +0 -1
- package/dist/core/SaveSync.js +0 -56
- package/dist/core/SaveSync.js.map +0 -1
- package/dist/core/Scene.d.ts +0 -63
- package/dist/core/Scene.d.ts.map +0 -1
- package/dist/core/Scene.js +0 -81
- package/dist/core/Scene.js.map +0 -1
- package/dist/core/SceneComponents.d.ts +0 -67
- package/dist/core/SceneComponents.d.ts.map +0 -1
- package/dist/core/SceneComponents.js +0 -76
- package/dist/core/SceneComponents.js.map +0 -1
- package/dist/core/SceneStack.d.ts +0 -61
- package/dist/core/SceneStack.d.ts.map +0 -1
- package/dist/core/SceneStack.js +0 -91
- package/dist/core/SceneStack.js.map +0 -1
- package/dist/core/Scramble.d.ts +0 -21
- package/dist/core/Scramble.d.ts.map +0 -1
- package/dist/core/Scramble.js +0 -52
- package/dist/core/Scramble.js.map +0 -1
- package/dist/core/Session.d.ts +0 -31
- package/dist/core/Session.d.ts.map +0 -1
- package/dist/core/Session.js +0 -11
- package/dist/core/Session.js.map +0 -1
- package/dist/core/Settings.d.ts +0 -96
- package/dist/core/Settings.d.ts.map +0 -1
- package/dist/core/Settings.js +0 -190
- package/dist/core/Settings.js.map +0 -1
- package/dist/core/Signal.d.ts +0 -35
- package/dist/core/Signal.d.ts.map +0 -1
- package/dist/core/Signal.js +0 -41
- package/dist/core/Signal.js.map +0 -1
- package/dist/core/Spawner.d.ts +0 -65
- package/dist/core/Spawner.d.ts.map +0 -1
- package/dist/core/Spawner.js +0 -82
- package/dist/core/Spawner.js.map +0 -1
- package/dist/core/State.d.ts +0 -97
- package/dist/core/State.d.ts.map +0 -1
- package/dist/core/State.js +0 -177
- package/dist/core/State.js.map +0 -1
- package/dist/core/Stats.d.ts +0 -46
- package/dist/core/Stats.d.ts.map +0 -1
- package/dist/core/Stats.js +0 -47
- package/dist/core/Stats.js.map +0 -1
- package/dist/core/StoredValue.d.ts +0 -30
- package/dist/core/StoredValue.d.ts.map +0 -1
- package/dist/core/StoredValue.js +0 -38
- package/dist/core/StoredValue.js.map +0 -1
- package/dist/core/SyncGuard.d.ts +0 -57
- package/dist/core/SyncGuard.d.ts.map +0 -1
- package/dist/core/SyncGuard.js +0 -116
- package/dist/core/SyncGuard.js.map +0 -1
- package/dist/core/Telemetry.d.ts +0 -63
- package/dist/core/Telemetry.d.ts.map +0 -1
- package/dist/core/Telemetry.js +0 -83
- package/dist/core/Telemetry.js.map +0 -1
- package/dist/core/Twee.d.ts +0 -101
- package/dist/core/Twee.d.ts.map +0 -1
- package/dist/core/Twee.js +0 -174
- package/dist/core/Twee.js.map +0 -1
- package/dist/core/Tween.d.ts +0 -60
- package/dist/core/Tween.d.ts.map +0 -1
- package/dist/core/Tween.js +0 -98
- package/dist/core/Tween.js.map +0 -1
- package/dist/core/UndoHistory.d.ts +0 -52
- package/dist/core/UndoHistory.d.ts.map +0 -1
- package/dist/core/UndoHistory.js +0 -49
- package/dist/core/UndoHistory.js.map +0 -1
- package/dist/core/index.d.ts +0 -94
- package/dist/core/index.d.ts.map +0 -1
- package/dist/core/index.js +0 -53
- package/dist/core/index.js.map +0 -1
- package/dist/headless/index.d.ts +0 -87
- package/dist/headless/index.d.ts.map +0 -1
- package/dist/headless/index.js +0 -87
- package/dist/headless/index.js.map +0 -1
- package/dist/i18n/Content.d.ts +0 -151
- package/dist/i18n/Content.d.ts.map +0 -1
- package/dist/i18n/Content.js +0 -218
- package/dist/i18n/Content.js.map +0 -1
- package/dist/i18n/EditSession.d.ts +0 -101
- package/dist/i18n/EditSession.d.ts.map +0 -1
- package/dist/i18n/EditSession.js +0 -150
- package/dist/i18n/EditSession.js.map +0 -1
- package/dist/i18n/Fluent.d.ts +0 -7
- package/dist/i18n/Fluent.d.ts.map +0 -1
- package/dist/i18n/Fluent.js +0 -98
- package/dist/i18n/Fluent.js.map +0 -1
- package/dist/i18n/Format.d.ts +0 -25
- package/dist/i18n/Format.d.ts.map +0 -1
- package/dist/i18n/Format.js +0 -32
- package/dist/i18n/Format.js.map +0 -1
- package/dist/i18n/FormatSpec.d.ts +0 -76
- package/dist/i18n/FormatSpec.d.ts.map +0 -1
- package/dist/i18n/FormatSpec.js +0 -306
- package/dist/i18n/FormatSpec.js.map +0 -1
- package/dist/i18n/Po.d.ts +0 -54
- package/dist/i18n/Po.d.ts.map +0 -1
- package/dist/i18n/Po.js +0 -192
- package/dist/i18n/Po.js.map +0 -1
- package/dist/i18n/SemanticMessage.d.ts +0 -84
- package/dist/i18n/SemanticMessage.d.ts.map +0 -1
- package/dist/i18n/SemanticMessage.js +0 -54
- package/dist/i18n/SemanticMessage.js.map +0 -1
- package/dist/i18n/SoundMarkers.d.ts +0 -38
- package/dist/i18n/SoundMarkers.d.ts.map +0 -1
- package/dist/i18n/SoundMarkers.js +0 -48
- package/dist/i18n/SoundMarkers.js.map +0 -1
- package/dist/i18n/Validate.d.ts +0 -82
- package/dist/i18n/Validate.d.ts.map +0 -1
- package/dist/i18n/Validate.js +0 -106
- package/dist/i18n/Validate.js.map +0 -1
- package/dist/i18n/index.d.ts +0 -177
- package/dist/i18n/index.d.ts.map +0 -1
- package/dist/i18n/index.js +0 -331
- package/dist/i18n/index.js.map +0 -1
- package/dist/index.d.ts +0 -26
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -26
- package/dist/index.js.map +0 -1
- package/dist/mw_games.global.js +0 -1410
- package/dist/mwl/MapFile.d.ts +0 -41
- package/dist/mwl/MapFile.d.ts.map +0 -1
- package/dist/mwl/MapFile.js +0 -53
- package/dist/mwl/MapFile.js.map +0 -1
- package/dist/mwl/actors.d.ts +0 -62
- package/dist/mwl/actors.d.ts.map +0 -1
- package/dist/mwl/actors.js +0 -82
- package/dist/mwl/actors.js.map +0 -1
- package/dist/mwl/campaign.d.ts +0 -51
- package/dist/mwl/campaign.d.ts.map +0 -1
- package/dist/mwl/campaign.js +0 -58
- package/dist/mwl/campaign.js.map +0 -1
- package/dist/mwl/carryover.d.ts +0 -86
- package/dist/mwl/carryover.d.ts.map +0 -1
- package/dist/mwl/carryover.js +0 -70
- package/dist/mwl/carryover.js.map +0 -1
- package/dist/mwl/catalog.d.ts +0 -98
- package/dist/mwl/catalog.d.ts.map +0 -1
- package/dist/mwl/catalog.js +0 -259
- package/dist/mwl/catalog.js.map +0 -1
- package/dist/mwl/compiler.d.ts +0 -135
- package/dist/mwl/compiler.d.ts.map +0 -1
- package/dist/mwl/compiler.js +0 -216
- package/dist/mwl/compiler.js.map +0 -1
- package/dist/mwl/conditions.d.ts +0 -30
- package/dist/mwl/conditions.d.ts.map +0 -1
- package/dist/mwl/conditions.js +0 -212
- package/dist/mwl/conditions.js.map +0 -1
- package/dist/mwl/content.d.ts +0 -140
- package/dist/mwl/content.d.ts.map +0 -1
- package/dist/mwl/content.js +0 -179
- package/dist/mwl/content.js.map +0 -1
- package/dist/mwl/expression.d.ts +0 -42
- package/dist/mwl/expression.d.ts.map +0 -1
- package/dist/mwl/expression.js +0 -164
- package/dist/mwl/expression.js.map +0 -1
- package/dist/mwl/grammar.d.ts +0 -100
- package/dist/mwl/grammar.d.ts.map +0 -1
- package/dist/mwl/grammar.js +0 -588
- package/dist/mwl/grammar.js.map +0 -1
- package/dist/mwl/hooks.d.ts +0 -201
- package/dist/mwl/hooks.d.ts.map +0 -1
- package/dist/mwl/hooks.js +0 -165
- package/dist/mwl/hooks.js.map +0 -1
- package/dist/mwl/index.d.ts +0 -51
- package/dist/mwl/index.d.ts.map +0 -1
- package/dist/mwl/index.js +0 -26
- package/dist/mwl/index.js.map +0 -1
- package/dist/mwl/objects.d.ts +0 -31
- package/dist/mwl/objects.d.ts.map +0 -1
- package/dist/mwl/objects.js +0 -83
- package/dist/mwl/objects.js.map +0 -1
- package/dist/mwl/package-container.d.ts +0 -185
- package/dist/mwl/package-container.d.ts.map +0 -1
- package/dist/mwl/package-container.js +0 -446
- package/dist/mwl/package-container.js.map +0 -1
- package/dist/mwl/package-document.d.ts +0 -217
- package/dist/mwl/package-document.d.ts.map +0 -1
- package/dist/mwl/package-document.js +0 -639
- package/dist/mwl/package-document.js.map +0 -1
- package/dist/mwl/package-rom.d.ts +0 -37
- package/dist/mwl/package-rom.d.ts.map +0 -1
- package/dist/mwl/package-rom.js +0 -96
- package/dist/mwl/package-rom.js.map +0 -1
- package/dist/mwl/package-verify.d.ts +0 -34
- package/dist/mwl/package-verify.d.ts.map +0 -1
- package/dist/mwl/package-verify.js +0 -111
- package/dist/mwl/package-verify.js.map +0 -1
- package/dist/mwl/package.d.ts +0 -184
- package/dist/mwl/package.d.ts.map +0 -1
- package/dist/mwl/package.js +0 -382
- package/dist/mwl/package.js.map +0 -1
- package/dist/mwl/persistence.d.ts +0 -67
- package/dist/mwl/persistence.d.ts.map +0 -1
- package/dist/mwl/persistence.js +0 -135
- package/dist/mwl/persistence.js.map +0 -1
- package/dist/mwl/presentation.d.ts +0 -86
- package/dist/mwl/presentation.d.ts.map +0 -1
- package/dist/mwl/presentation.js +0 -419
- package/dist/mwl/presentation.js.map +0 -1
- package/dist/mwl/pyroeis-runtime.d.ts +0 -82
- package/dist/mwl/pyroeis-runtime.d.ts.map +0 -1
- package/dist/mwl/pyroeis-runtime.js +0 -535
- package/dist/mwl/pyroeis-runtime.js.map +0 -1
- package/dist/mwl/pyroeis.d.ts +0 -54
- package/dist/mwl/pyroeis.d.ts.map +0 -1
- package/dist/mwl/pyroeis.js +0 -189
- package/dist/mwl/pyroeis.js.map +0 -1
- package/dist/mwl/readers.d.ts +0 -77
- package/dist/mwl/readers.d.ts.map +0 -1
- package/dist/mwl/readers.js +0 -150
- package/dist/mwl/readers.js.map +0 -1
- package/dist/mwl/report.d.ts +0 -44
- package/dist/mwl/report.d.ts.map +0 -1
- package/dist/mwl/report.js +0 -88
- package/dist/mwl/report.js.map +0 -1
- package/dist/mwl/runtime.d.ts +0 -577
- package/dist/mwl/runtime.d.ts.map +0 -1
- package/dist/mwl/runtime.js +0 -1741
- package/dist/mwl/runtime.js.map +0 -1
- package/dist/mwl/schema.d.ts +0 -151
- package/dist/mwl/schema.d.ts.map +0 -1
- package/dist/mwl/schema.js +0 -979
- package/dist/mwl/schema.js.map +0 -1
- package/dist/mwl/scripts.d.ts +0 -26
- package/dist/mwl/scripts.d.ts.map +0 -1
- package/dist/mwl/scripts.js +0 -34
- package/dist/mwl/scripts.js.map +0 -1
- package/dist/mwl/tables.d.ts +0 -95
- package/dist/mwl/tables.d.ts.map +0 -1
- package/dist/mwl/tables.js +0 -100
- package/dist/mwl/tables.js.map +0 -1
- package/dist/mwl/utils.d.ts +0 -10
- package/dist/mwl/utils.d.ts.map +0 -1
- package/dist/mwl/utils.js +0 -40
- package/dist/mwl/utils.js.map +0 -1
- package/dist/physics/PhysicsWorld.d.ts +0 -158
- package/dist/physics/PhysicsWorld.d.ts.map +0 -1
- package/dist/physics/PhysicsWorld.js +0 -376
- package/dist/physics/PhysicsWorld.js.map +0 -1
- package/dist/physics/XpbdWorld.d.ts +0 -213
- package/dist/physics/XpbdWorld.d.ts.map +0 -1
- package/dist/physics/XpbdWorld.js +0 -337
- package/dist/physics/XpbdWorld.js.map +0 -1
- package/dist/physics/cloth/index.d.ts +0 -99
- package/dist/physics/cloth/index.d.ts.map +0 -1
- package/dist/physics/cloth/index.js +0 -226
- package/dist/physics/cloth/index.js.map +0 -1
- package/dist/physics/index.d.ts +0 -7
- package/dist/physics/index.d.ts.map +0 -1
- package/dist/physics/index.js +0 -4
- package/dist/physics/index.js.map +0 -1
- package/dist/physics/spring/index.d.ts +0 -91
- package/dist/physics/spring/index.d.ts.map +0 -1
- package/dist/physics/spring/index.js +0 -120
- package/dist/physics/spring/index.js.map +0 -1
- package/dist/physics/xpbd.d.ts +0 -3
- package/dist/physics/xpbd.d.ts.map +0 -1
- package/dist/physics/xpbd.js +0 -2
- package/dist/physics/xpbd.js.map +0 -1
- package/dist/roguelike/Boss.d.ts +0 -79
- package/dist/roguelike/Boss.d.ts.map +0 -1
- package/dist/roguelike/Boss.js +0 -126
- package/dist/roguelike/Boss.js.map +0 -1
- package/dist/roguelike/Cave.d.ts +0 -124
- package/dist/roguelike/Cave.d.ts.map +0 -1
- package/dist/roguelike/Cave.js +0 -216
- package/dist/roguelike/Cave.js.map +0 -1
- package/dist/roguelike/Combat.d.ts +0 -35
- package/dist/roguelike/Combat.d.ts.map +0 -1
- package/dist/roguelike/Combat.js +0 -33
- package/dist/roguelike/Combat.js.map +0 -1
- package/dist/roguelike/ContentRoll.d.ts +0 -53
- package/dist/roguelike/ContentRoll.d.ts.map +0 -1
- package/dist/roguelike/ContentRoll.js +0 -48
- package/dist/roguelike/ContentRoll.js.map +0 -1
- package/dist/roguelike/Doors.d.ts +0 -73
- package/dist/roguelike/Doors.d.ts.map +0 -1
- package/dist/roguelike/Doors.js +0 -115
- package/dist/roguelike/Doors.js.map +0 -1
- package/dist/roguelike/DungeonParity.d.ts +0 -57
- package/dist/roguelike/DungeonParity.d.ts.map +0 -1
- package/dist/roguelike/DungeonParity.js +0 -87
- package/dist/roguelike/DungeonParity.js.map +0 -1
- package/dist/roguelike/Elevation.d.ts +0 -41
- package/dist/roguelike/Elevation.d.ts.map +0 -1
- package/dist/roguelike/Elevation.js +0 -52
- package/dist/roguelike/Elevation.js.map +0 -1
- package/dist/roguelike/Features.d.ts +0 -59
- package/dist/roguelike/Features.d.ts.map +0 -1
- package/dist/roguelike/Features.js +0 -76
- package/dist/roguelike/Features.js.map +0 -1
- package/dist/roguelike/FieldOfView.d.ts +0 -86
- package/dist/roguelike/FieldOfView.d.ts.map +0 -1
- package/dist/roguelike/FieldOfView.js +0 -148
- package/dist/roguelike/FieldOfView.js.map +0 -1
- package/dist/roguelike/Level.d.ts +0 -139
- package/dist/roguelike/Level.d.ts.map +0 -1
- package/dist/roguelike/Level.js +0 -189
- package/dist/roguelike/Level.js.map +0 -1
- package/dist/roguelike/MonsterAI.d.ts +0 -54
- package/dist/roguelike/MonsterAI.d.ts.map +0 -1
- package/dist/roguelike/MonsterAI.js +0 -83
- package/dist/roguelike/MonsterAI.js.map +0 -1
- package/dist/roguelike/MultiStageAbility.d.ts +0 -59
- package/dist/roguelike/MultiStageAbility.d.ts.map +0 -1
- package/dist/roguelike/MultiStageAbility.js +0 -76
- package/dist/roguelike/MultiStageAbility.js.map +0 -1
- package/dist/roguelike/MultiTurnBeam.d.ts +0 -108
- package/dist/roguelike/MultiTurnBeam.d.ts.map +0 -1
- package/dist/roguelike/MultiTurnBeam.js +0 -164
- package/dist/roguelike/MultiTurnBeam.js.map +0 -1
- package/dist/roguelike/Overworld.d.ts +0 -89
- package/dist/roguelike/Overworld.d.ts.map +0 -1
- package/dist/roguelike/Overworld.js +0 -325
- package/dist/roguelike/Overworld.js.map +0 -1
- package/dist/roguelike/Pathfinder.d.ts +0 -103
- package/dist/roguelike/Pathfinder.d.ts.map +0 -1
- package/dist/roguelike/Pathfinder.js +0 -213
- package/dist/roguelike/Pathfinder.js.map +0 -1
- package/dist/roguelike/Placement.d.ts +0 -62
- package/dist/roguelike/Placement.d.ts.map +0 -1
- package/dist/roguelike/Placement.js +0 -79
- package/dist/roguelike/Placement.js.map +0 -1
- package/dist/roguelike/RoomBuilders.d.ts +0 -60
- package/dist/roguelike/RoomBuilders.d.ts.map +0 -1
- package/dist/roguelike/RoomBuilders.js +0 -57
- package/dist/roguelike/RoomBuilders.js.map +0 -1
- package/dist/roguelike/Scheduler.d.ts +0 -96
- package/dist/roguelike/Scheduler.d.ts.map +0 -1
- package/dist/roguelike/Scheduler.js +0 -154
- package/dist/roguelike/Scheduler.js.map +0 -1
- package/dist/roguelike/Secrets.d.ts +0 -57
- package/dist/roguelike/Secrets.d.ts.map +0 -1
- package/dist/roguelike/Secrets.js +0 -77
- package/dist/roguelike/Secrets.js.map +0 -1
- package/dist/roguelike/Stealth.d.ts +0 -47
- package/dist/roguelike/Stealth.d.ts.map +0 -1
- package/dist/roguelike/Stealth.js +0 -48
- package/dist/roguelike/Stealth.js.map +0 -1
- package/dist/roguelike/Targeting.d.ts +0 -312
- package/dist/roguelike/Targeting.d.ts.map +0 -1
- package/dist/roguelike/Targeting.js +0 -483
- package/dist/roguelike/Targeting.js.map +0 -1
- package/dist/roguelike/TriggerTracker.d.ts +0 -46
- package/dist/roguelike/TriggerTracker.d.ts.map +0 -1
- package/dist/roguelike/TriggerTracker.js +0 -59
- package/dist/roguelike/TriggerTracker.js.map +0 -1
- package/dist/roguelike/generate.d.ts +0 -139
- package/dist/roguelike/generate.d.ts.map +0 -1
- package/dist/roguelike/generate.js +0 -166
- package/dist/roguelike/generate.js.map +0 -1
- package/dist/roguelike/index.d.ts +0 -48
- package/dist/roguelike/index.d.ts.map +0 -1
- package/dist/roguelike/index.js +0 -27
- package/dist/roguelike/index.js.map +0 -1
- package/dist/rpg/Collision.d.ts +0 -61
- package/dist/rpg/Collision.d.ts.map +0 -1
- package/dist/rpg/Collision.js +0 -94
- package/dist/rpg/Collision.js.map +0 -1
- package/dist/rpg/Event.d.ts +0 -50
- package/dist/rpg/Event.d.ts.map +0 -1
- package/dist/rpg/Event.js +0 -36
- package/dist/rpg/Event.js.map +0 -1
- package/dist/rpg/EventRunner.d.ts +0 -139
- package/dist/rpg/EventRunner.d.ts.map +0 -1
- package/dist/rpg/EventRunner.js +0 -125
- package/dist/rpg/EventRunner.js.map +0 -1
- package/dist/rpg/FreeMover.d.ts +0 -59
- package/dist/rpg/FreeMover.d.ts.map +0 -1
- package/dist/rpg/FreeMover.js +0 -79
- package/dist/rpg/FreeMover.js.map +0 -1
- package/dist/rpg/GameState.d.ts +0 -36
- package/dist/rpg/GameState.d.ts.map +0 -1
- package/dist/rpg/GameState.js +0 -49
- package/dist/rpg/GameState.js.map +0 -1
- package/dist/rpg/GridMover.d.ts +0 -71
- package/dist/rpg/GridMover.d.ts.map +0 -1
- package/dist/rpg/GridMover.js +0 -119
- package/dist/rpg/GridMover.js.map +0 -1
- package/dist/rpg/Marshal.d.ts +0 -81
- package/dist/rpg/Marshal.d.ts.map +0 -1
- package/dist/rpg/Marshal.js +0 -422
- package/dist/rpg/Marshal.js.map +0 -1
- package/dist/rpg/MovableSprite.d.ts +0 -31
- package/dist/rpg/MovableSprite.d.ts.map +0 -1
- package/dist/rpg/MovableSprite.js +0 -10
- package/dist/rpg/MovableSprite.js.map +0 -1
- package/dist/rpg/MoveRoute.d.ts +0 -118
- package/dist/rpg/MoveRoute.d.ts.map +0 -1
- package/dist/rpg/MoveRoute.js +0 -139
- package/dist/rpg/MoveRoute.js.map +0 -1
- package/dist/rpg/Quest.d.ts +0 -173
- package/dist/rpg/Quest.d.ts.map +0 -1
- package/dist/rpg/Quest.js +0 -221
- package/dist/rpg/Quest.js.map +0 -1
- package/dist/rpg/automap.d.ts +0 -81
- package/dist/rpg/automap.d.ts.map +0 -1
- package/dist/rpg/automap.js +0 -107
- package/dist/rpg/automap.js.map +0 -1
- package/dist/rpg/dialogue-text.d.ts +0 -81
- package/dist/rpg/dialogue-text.d.ts.map +0 -1
- package/dist/rpg/dialogue-text.js +0 -88
- package/dist/rpg/dialogue-text.js.map +0 -1
- package/dist/rpg/index.d.ts +0 -25
- package/dist/rpg/index.d.ts.map +0 -1
- package/dist/rpg/index.js +0 -14
- package/dist/rpg/index.js.map +0 -1
- package/dist/rpg/twee-events.d.ts +0 -48
- package/dist/rpg/twee-events.d.ts.map +0 -1
- package/dist/rpg/twee-events.js +0 -35
- package/dist/rpg/twee-events.js.map +0 -1
- package/dist/simulation/Campaign.d.ts +0 -60
- package/dist/simulation/Campaign.d.ts.map +0 -1
- package/dist/simulation/Campaign.js +0 -89
- package/dist/simulation/Campaign.js.map +0 -1
- package/dist/simulation/CampaignSave.d.ts +0 -68
- package/dist/simulation/CampaignSave.d.ts.map +0 -1
- package/dist/simulation/CampaignSave.js +0 -54
- package/dist/simulation/CampaignSave.js.map +0 -1
- package/dist/simulation/EventPresentation.d.ts +0 -111
- package/dist/simulation/EventPresentation.d.ts.map +0 -1
- package/dist/simulation/EventPresentation.js +0 -120
- package/dist/simulation/EventPresentation.js.map +0 -1
- package/dist/simulation/Harness.d.ts +0 -26
- package/dist/simulation/Harness.d.ts.map +0 -1
- package/dist/simulation/Harness.js +0 -26
- package/dist/simulation/Harness.js.map +0 -1
- package/dist/simulation/Runtime.d.ts +0 -189
- package/dist/simulation/Runtime.d.ts.map +0 -1
- package/dist/simulation/Runtime.js +0 -244
- package/dist/simulation/Runtime.js.map +0 -1
- package/dist/simulation/Scenario.d.ts +0 -44
- package/dist/simulation/Scenario.d.ts.map +0 -1
- package/dist/simulation/Scenario.js +0 -40
- package/dist/simulation/Scenario.js.map +0 -1
- package/dist/simulation/Training.d.ts +0 -220
- package/dist/simulation/Training.d.ts.map +0 -1
- package/dist/simulation/Training.js +0 -366
- package/dist/simulation/Training.js.map +0 -1
- package/dist/simulation/Turns.d.ts +0 -40
- package/dist/simulation/Turns.d.ts.map +0 -1
- package/dist/simulation/Turns.js +0 -41
- package/dist/simulation/Turns.js.map +0 -1
- package/dist/simulation/index.d.ts +0 -25
- package/dist/simulation/index.d.ts.map +0 -1
- package/dist/simulation/index.js +0 -16
- package/dist/simulation/index.js.map +0 -1
- package/dist/skeleton/index.d.ts +0 -212
- package/dist/skeleton/index.d.ts.map +0 -1
- package/dist/skeleton/index.js +0 -325
- package/dist/skeleton/index.js.map +0 -1
- package/dist/testing/FakeAudio.d.ts +0 -149
- package/dist/testing/FakeAudio.d.ts.map +0 -1
- package/dist/testing/FakeAudio.js +0 -219
- package/dist/testing/FakeAudio.js.map +0 -1
- package/dist/testing/SceneControls.d.ts +0 -35
- package/dist/testing/SceneControls.d.ts.map +0 -1
- package/dist/testing/SceneControls.js +0 -49
- package/dist/testing/SceneControls.js.map +0 -1
- package/dist/testing/index.d.ts +0 -125
- package/dist/testing/index.d.ts.map +0 -1
- package/dist/testing/index.js +0 -157
- package/dist/testing/index.js.map +0 -1
- package/dist/threads/index.d.ts +0 -3
- package/dist/threads/index.d.ts.map +0 -1
- package/dist/threads/index.js +0 -2
- package/dist/threads/index.js.map +0 -1
- package/dist/threads/spawn.d.ts +0 -73
- package/dist/threads/spawn.d.ts.map +0 -1
- package/dist/threads/spawn.js +0 -167
- package/dist/threads/spawn.js.map +0 -1
- package/dist/threads/worker.d.ts +0 -51
- package/dist/threads/worker.d.ts.map +0 -1
- package/dist/threads/worker.js +0 -84
- package/dist/threads/worker.js.map +0 -1
- package/dist/three-d/Character3D.d.ts +0 -74
- package/dist/three-d/Character3D.d.ts.map +0 -1
- package/dist/three-d/Character3D.js +0 -122
- package/dist/three-d/Character3D.js.map +0 -1
- package/dist/three-d/Collision3D.d.ts +0 -111
- package/dist/three-d/Collision3D.d.ts.map +0 -1
- package/dist/three-d/Collision3D.js +0 -119
- package/dist/three-d/Collision3D.js.map +0 -1
- package/dist/three-d/Engine3D.d.ts +0 -25
- package/dist/three-d/Engine3D.d.ts.map +0 -1
- package/dist/three-d/Engine3D.js +0 -45
- package/dist/three-d/Engine3D.js.map +0 -1
- package/dist/three-d/Grid.d.ts +0 -30
- package/dist/three-d/Grid.d.ts.map +0 -1
- package/dist/three-d/Grid.js +0 -24
- package/dist/three-d/Grid.js.map +0 -1
- package/dist/three-d/Heightmap.d.ts +0 -38
- package/dist/three-d/Heightmap.d.ts.map +0 -1
- package/dist/three-d/Heightmap.js +0 -29
- package/dist/three-d/Heightmap.js.map +0 -1
- package/dist/three-d/Models.d.ts +0 -49
- package/dist/three-d/Models.d.ts.map +0 -1
- package/dist/three-d/Models.js +0 -77
- package/dist/three-d/Models.js.map +0 -1
- package/dist/three-d/TileGrid3D.d.ts +0 -27
- package/dist/three-d/TileGrid3D.d.ts.map +0 -1
- package/dist/three-d/TileGrid3D.js +0 -66
- package/dist/three-d/TileGrid3D.js.map +0 -1
- package/dist/three-d/Vox.d.ts +0 -43
- package/dist/three-d/Vox.d.ts.map +0 -1
- package/dist/three-d/Vox.js +0 -108
- package/dist/three-d/Vox.js.map +0 -1
- package/dist/three-d/index.d.ts +0 -15
- package/dist/three-d/index.d.ts.map +0 -1
- package/dist/three-d/index.js +0 -8
- package/dist/three-d/index.js.map +0 -1
- package/dist/two-d/Game.d.ts +0 -240
- package/dist/two-d/Game.d.ts.map +0 -1
- package/dist/two-d/Game.js +0 -487
- package/dist/two-d/Game.js.map +0 -1
- package/dist/two-d/QualityScaler.d.ts +0 -63
- package/dist/two-d/QualityScaler.d.ts.map +0 -1
- package/dist/two-d/QualityScaler.js +0 -92
- package/dist/two-d/QualityScaler.js.map +0 -1
- package/dist/two-d/ResolutionFit.d.ts +0 -28
- package/dist/two-d/ResolutionFit.d.ts.map +0 -1
- package/dist/two-d/ResolutionFit.js +0 -39
- package/dist/two-d/ResolutionFit.js.map +0 -1
- package/dist/two-d/Scene2D.d.ts +0 -43
- package/dist/two-d/Scene2D.d.ts.map +0 -1
- package/dist/two-d/Scene2D.js +0 -53
- package/dist/two-d/Scene2D.js.map +0 -1
- package/dist/two-d/index.d.ts +0 -22
- package/dist/two-d/index.d.ts.map +0 -1
- package/dist/two-d/index.js +0 -19
- package/dist/two-d/index.js.map +0 -1
- package/dist/two-d/pixi-interop.d.ts +0 -66
- package/dist/two-d/pixi-interop.d.ts.map +0 -1
- package/dist/two-d/pixi-interop.js +0 -72
- package/dist/two-d/pixi-interop.js.map +0 -1
- package/dist/two-d/presentation/MwlPresentation.d.ts +0 -117
- package/dist/two-d/presentation/MwlPresentation.d.ts.map +0 -1
- package/dist/two-d/presentation/MwlPresentation.js +0 -755
- package/dist/two-d/presentation/MwlPresentation.js.map +0 -1
- package/dist/two-d/presentation/index.d.ts +0 -3
- package/dist/two-d/presentation/index.d.ts.map +0 -1
- package/dist/two-d/presentation/index.js +0 -2
- package/dist/two-d/presentation/index.js.map +0 -1
- package/dist/two-d/render/ActorAnimator.d.ts +0 -92
- package/dist/two-d/render/ActorAnimator.d.ts.map +0 -1
- package/dist/two-d/render/ActorAnimator.js +0 -97
- package/dist/two-d/render/ActorAnimator.js.map +0 -1
- package/dist/two-d/render/AnimatedSprite.d.ts +0 -154
- package/dist/two-d/render/AnimatedSprite.d.ts.map +0 -1
- package/dist/two-d/render/AnimatedSprite.js +0 -197
- package/dist/two-d/render/AnimatedSprite.js.map +0 -1
- package/dist/two-d/render/Autotile.d.ts +0 -74
- package/dist/two-d/render/Autotile.d.ts.map +0 -1
- package/dist/two-d/render/Autotile.js +0 -149
- package/dist/two-d/render/Autotile.js.map +0 -1
- package/dist/two-d/render/Beam.d.ts +0 -136
- package/dist/two-d/render/Beam.d.ts.map +0 -1
- package/dist/two-d/render/Beam.js +0 -203
- package/dist/two-d/render/Beam.js.map +0 -1
- package/dist/two-d/render/Camera.d.ts +0 -255
- package/dist/two-d/render/Camera.d.ts.map +0 -1
- package/dist/two-d/render/Camera.js +0 -376
- package/dist/two-d/render/Camera.js.map +0 -1
- package/dist/two-d/render/Capabilities.d.ts +0 -84
- package/dist/two-d/render/Capabilities.d.ts.map +0 -1
- package/dist/two-d/render/Capabilities.js +0 -129
- package/dist/two-d/render/Capabilities.js.map +0 -1
- package/dist/two-d/render/ClothSprite.d.ts +0 -83
- package/dist/two-d/render/ClothSprite.d.ts.map +0 -1
- package/dist/two-d/render/ClothSprite.js +0 -105
- package/dist/two-d/render/ClothSprite.js.map +0 -1
- package/dist/two-d/render/ColorBlindness.d.ts +0 -39
- package/dist/two-d/render/ColorBlindness.d.ts.map +0 -1
- package/dist/two-d/render/ColorBlindness.js +0 -45
- package/dist/two-d/render/ColorBlindness.js.map +0 -1
- package/dist/two-d/render/ColorTransformBatcher.d.ts +0 -143
- package/dist/two-d/render/ColorTransformBatcher.d.ts.map +0 -1
- package/dist/two-d/render/ColorTransformBatcher.js +0 -395
- package/dist/two-d/render/ColorTransformBatcher.js.map +0 -1
- package/dist/two-d/render/Flights.d.ts +0 -90
- package/dist/two-d/render/Flights.d.ts.map +0 -1
- package/dist/two-d/render/Flights.js +0 -135
- package/dist/two-d/render/Flights.js.map +0 -1
- package/dist/two-d/render/FogLayer.d.ts +0 -68
- package/dist/two-d/render/FogLayer.d.ts.map +0 -1
- package/dist/two-d/render/FogLayer.js +0 -83
- package/dist/two-d/render/FogLayer.js.map +0 -1
- package/dist/two-d/render/Halo.d.ts +0 -58
- package/dist/two-d/render/Halo.d.ts.map +0 -1
- package/dist/two-d/render/Halo.js +0 -48
- package/dist/two-d/render/Halo.js.map +0 -1
- package/dist/two-d/render/HazeLayer.d.ts +0 -112
- package/dist/two-d/render/HazeLayer.d.ts.map +0 -1
- package/dist/two-d/render/HazeLayer.js +0 -186
- package/dist/two-d/render/HazeLayer.js.map +0 -1
- package/dist/two-d/render/ImageModifiers.d.ts +0 -312
- package/dist/two-d/render/ImageModifiers.d.ts.map +0 -1
- package/dist/two-d/render/ImageModifiers.js +0 -728
- package/dist/two-d/render/ImageModifiers.js.map +0 -1
- package/dist/two-d/render/LayeredSprite.d.ts +0 -54
- package/dist/two-d/render/LayeredSprite.d.ts.map +0 -1
- package/dist/two-d/render/LayeredSprite.js +0 -80
- package/dist/two-d/render/LayeredSprite.js.map +0 -1
- package/dist/two-d/render/LightningArc.d.ts +0 -57
- package/dist/two-d/render/LightningArc.d.ts.map +0 -1
- package/dist/two-d/render/LightningArc.js +0 -91
- package/dist/two-d/render/LightningArc.js.map +0 -1
- package/dist/two-d/render/LiquidLayer.d.ts +0 -62
- package/dist/two-d/render/LiquidLayer.d.ts.map +0 -1
- package/dist/two-d/render/LiquidLayer.js +0 -102
- package/dist/two-d/render/LiquidLayer.js.map +0 -1
- package/dist/two-d/render/Minimap.d.ts +0 -100
- package/dist/two-d/render/Minimap.d.ts.map +0 -1
- package/dist/two-d/render/Minimap.js +0 -157
- package/dist/two-d/render/Minimap.js.map +0 -1
- package/dist/two-d/render/NeonGlow.d.ts +0 -100
- package/dist/two-d/render/NeonGlow.d.ts.map +0 -1
- package/dist/two-d/render/NeonGlow.js +0 -184
- package/dist/two-d/render/NeonGlow.js.map +0 -1
- package/dist/two-d/render/PaletteRemap.d.ts +0 -154
- package/dist/two-d/render/PaletteRemap.d.ts.map +0 -1
- package/dist/two-d/render/PaletteRemap.js +0 -217
- package/dist/two-d/render/PaletteRemap.js.map +0 -1
- package/dist/two-d/render/Particles.d.ts +0 -262
- package/dist/two-d/render/Particles.d.ts.map +0 -1
- package/dist/two-d/render/Particles.js +0 -371
- package/dist/two-d/render/Particles.js.map +0 -1
- package/dist/two-d/render/Projectile.d.ts +0 -67
- package/dist/two-d/render/Projectile.d.ts.map +0 -1
- package/dist/two-d/render/Projectile.js +0 -78
- package/dist/two-d/render/Projectile.js.map +0 -1
- package/dist/two-d/render/RpgmAutotile.d.ts +0 -324
- package/dist/two-d/render/RpgmAutotile.d.ts.map +0 -1
- package/dist/two-d/render/RpgmAutotile.js +0 -933
- package/dist/two-d/render/RpgmAutotile.js.map +0 -1
- package/dist/two-d/render/SceneTransition.d.ts +0 -301
- package/dist/two-d/render/SceneTransition.d.ts.map +0 -1
- package/dist/two-d/render/SceneTransition.js +0 -458
- package/dist/two-d/render/SceneTransition.js.map +0 -1
- package/dist/two-d/render/ScreenEffects.d.ts +0 -124
- package/dist/two-d/render/ScreenEffects.d.ts.map +0 -1
- package/dist/two-d/render/ScreenEffects.js +0 -215
- package/dist/two-d/render/ScreenEffects.js.map +0 -1
- package/dist/two-d/render/Shape2D.d.ts +0 -146
- package/dist/two-d/render/Shape2D.d.ts.map +0 -1
- package/dist/two-d/render/Shape2D.js +0 -166
- package/dist/two-d/render/Shape2D.js.map +0 -1
- package/dist/two-d/render/SkeletalSprite.d.ts +0 -121
- package/dist/two-d/render/SkeletalSprite.d.ts.map +0 -1
- package/dist/two-d/render/SkeletalSprite.js +0 -214
- package/dist/two-d/render/SkeletalSprite.js.map +0 -1
- package/dist/two-d/render/SpringSprite.d.ts +0 -40
- package/dist/two-d/render/SpringSprite.d.ts.map +0 -1
- package/dist/two-d/render/SpringSprite.js +0 -39
- package/dist/two-d/render/SpringSprite.js.map +0 -1
- package/dist/two-d/render/SpriteAttachment.d.ts +0 -55
- package/dist/two-d/render/SpriteAttachment.d.ts.map +0 -1
- package/dist/two-d/render/SpriteAttachment.js +0 -60
- package/dist/two-d/render/SpriteAttachment.js.map +0 -1
- package/dist/two-d/render/SpriteDeform.d.ts +0 -156
- package/dist/two-d/render/SpriteDeform.d.ts.map +0 -1
- package/dist/two-d/render/SpriteDeform.js +0 -278
- package/dist/two-d/render/SpriteDeform.js.map +0 -1
- package/dist/two-d/render/SpriteGroup.d.ts +0 -83
- package/dist/two-d/render/SpriteGroup.d.ts.map +0 -1
- package/dist/two-d/render/SpriteGroup.js +0 -107
- package/dist/two-d/render/SpriteGroup.js.map +0 -1
- package/dist/two-d/render/SpriteMotion.d.ts +0 -121
- package/dist/two-d/render/SpriteMotion.d.ts.map +0 -1
- package/dist/two-d/render/SpriteMotion.js +0 -193
- package/dist/two-d/render/SpriteMotion.js.map +0 -1
- package/dist/two-d/render/SpriteSheet.d.ts +0 -62
- package/dist/two-d/render/SpriteSheet.d.ts.map +0 -1
- package/dist/two-d/render/SpriteSheet.js +0 -122
- package/dist/two-d/render/SpriteSheet.js.map +0 -1
- package/dist/two-d/render/StatusVisuals.d.ts +0 -86
- package/dist/two-d/render/StatusVisuals.d.ts.map +0 -1
- package/dist/two-d/render/StatusVisuals.js +0 -111
- package/dist/two-d/render/StatusVisuals.js.map +0 -1
- package/dist/two-d/render/SvgSkeleton.d.ts +0 -54
- package/dist/two-d/render/SvgSkeleton.d.ts.map +0 -1
- package/dist/two-d/render/SvgSkeleton.js +0 -112
- package/dist/two-d/render/SvgSkeleton.js.map +0 -1
- package/dist/two-d/render/TerrainGraphics.d.ts +0 -142
- package/dist/two-d/render/TerrainGraphics.d.ts.map +0 -1
- package/dist/two-d/render/TerrainGraphics.js +0 -161
- package/dist/two-d/render/TerrainGraphics.js.map +0 -1
- package/dist/two-d/render/TerrainGraphicsLayer.d.ts +0 -55
- package/dist/two-d/render/TerrainGraphicsLayer.d.ts.map +0 -1
- package/dist/two-d/render/TerrainGraphicsLayer.js +0 -54
- package/dist/two-d/render/TerrainGraphicsLayer.js.map +0 -1
- package/dist/two-d/render/TileMap.d.ts +0 -395
- package/dist/two-d/render/TileMap.d.ts.map +0 -1
- package/dist/two-d/render/TileMap.js +0 -967
- package/dist/two-d/render/TileMap.js.map +0 -1
- package/dist/two-d/render/TiledMap.d.ts +0 -113
- package/dist/two-d/render/TiledMap.d.ts.map +0 -1
- package/dist/two-d/render/TiledMap.js +0 -129
- package/dist/two-d/render/TiledMap.js.map +0 -1
- package/dist/two-d/render/TintedSprite.d.ts +0 -60
- package/dist/two-d/render/TintedSprite.d.ts.map +0 -1
- package/dist/two-d/render/TintedSprite.js +0 -88
- package/dist/two-d/render/TintedSprite.js.map +0 -1
- package/dist/two-d/render/Types2D.d.ts +0 -56
- package/dist/two-d/render/Types2D.d.ts.map +0 -1
- package/dist/two-d/render/Types2D.js +0 -45
- package/dist/two-d/render/Types2D.js.map +0 -1
- package/dist/two-d/render/Viewport.d.ts +0 -68
- package/dist/two-d/render/Viewport.d.ts.map +0 -1
- package/dist/two-d/render/Viewport.js +0 -74
- package/dist/two-d/render/Viewport.js.map +0 -1
- package/dist/two-d/render/index.d.ts +0 -81
- package/dist/two-d/render/index.d.ts.map +0 -1
- package/dist/two-d/render/index.js +0 -43
- package/dist/two-d/render/index.js.map +0 -1
- package/dist/two-d/stage/DialogueStage.d.ts +0 -90
- package/dist/two-d/stage/DialogueStage.d.ts.map +0 -1
- package/dist/two-d/stage/DialogueStage.js +0 -218
- package/dist/two-d/stage/DialogueStage.js.map +0 -1
- package/dist/two-d/stage/StoryScreen.d.ts +0 -110
- package/dist/two-d/stage/StoryScreen.d.ts.map +0 -1
- package/dist/two-d/stage/StoryScreen.js +0 -178
- package/dist/two-d/stage/StoryScreen.js.map +0 -1
- package/dist/two-d/stage/dialogue-text.d.ts +0 -81
- package/dist/two-d/stage/dialogue-text.d.ts.map +0 -1
- package/dist/two-d/stage/dialogue-text.js +0 -95
- package/dist/two-d/stage/dialogue-text.js.map +0 -1
- package/dist/two-d/stage/index.d.ts +0 -10
- package/dist/two-d/stage/index.d.ts.map +0 -1
- package/dist/two-d/stage/index.js +0 -6
- package/dist/two-d/stage/index.js.map +0 -1
- package/dist/two-d/stage/script.d.ts +0 -160
- package/dist/two-d/stage/script.d.ts.map +0 -1
- package/dist/two-d/stage/script.js +0 -207
- package/dist/two-d/stage/script.js.map +0 -1
- package/dist/two-d/stage/twee.d.ts +0 -35
- package/dist/two-d/stage/twee.d.ts.map +0 -1
- package/dist/two-d/stage/twee.js +0 -28
- package/dist/two-d/stage/twee.js.map +0 -1
- package/dist/two-d/ui/Bar.d.ts +0 -83
- package/dist/two-d/ui/Bar.d.ts.map +0 -1
- package/dist/two-d/ui/Bar.js +0 -110
- package/dist/two-d/ui/Bar.js.map +0 -1
- package/dist/two-d/ui/BitmapLabel.d.ts +0 -58
- package/dist/two-d/ui/BitmapLabel.d.ts.map +0 -1
- package/dist/two-d/ui/BitmapLabel.js +0 -82
- package/dist/two-d/ui/BitmapLabel.js.map +0 -1
- package/dist/two-d/ui/Button.d.ts +0 -133
- package/dist/two-d/ui/Button.d.ts.map +0 -1
- package/dist/two-d/ui/Button.js +0 -254
- package/dist/two-d/ui/Button.js.map +0 -1
- package/dist/two-d/ui/Checkbox.d.ts +0 -44
- package/dist/two-d/ui/Checkbox.d.ts.map +0 -1
- package/dist/two-d/ui/Checkbox.js +0 -89
- package/dist/two-d/ui/Checkbox.js.map +0 -1
- package/dist/two-d/ui/DataTable.d.ts +0 -79
- package/dist/two-d/ui/DataTable.d.ts.map +0 -1
- package/dist/two-d/ui/DataTable.js +0 -164
- package/dist/two-d/ui/DataTable.js.map +0 -1
- package/dist/two-d/ui/Dropdown.d.ts +0 -79
- package/dist/two-d/ui/Dropdown.d.ts.map +0 -1
- package/dist/two-d/ui/Dropdown.js +0 -136
- package/dist/two-d/ui/Dropdown.js.map +0 -1
- package/dist/two-d/ui/DropdownView.d.ts +0 -100
- package/dist/two-d/ui/DropdownView.d.ts.map +0 -1
- package/dist/two-d/ui/DropdownView.js +0 -234
- package/dist/two-d/ui/DropdownView.js.map +0 -1
- package/dist/two-d/ui/EventDialogue.d.ts +0 -23
- package/dist/two-d/ui/EventDialogue.d.ts.map +0 -1
- package/dist/two-d/ui/EventDialogue.js +0 -33
- package/dist/two-d/ui/EventDialogue.js.map +0 -1
- package/dist/two-d/ui/FloatingText.d.ts +0 -123
- package/dist/two-d/ui/FloatingText.d.ts.map +0 -1
- package/dist/two-d/ui/FloatingText.js +0 -153
- package/dist/two-d/ui/FloatingText.js.map +0 -1
- package/dist/two-d/ui/FloatingTextStack.d.ts +0 -150
- package/dist/two-d/ui/FloatingTextStack.d.ts.map +0 -1
- package/dist/two-d/ui/FloatingTextStack.js +0 -170
- package/dist/two-d/ui/FloatingTextStack.js.map +0 -1
- package/dist/two-d/ui/HelpScreen.d.ts +0 -45
- package/dist/two-d/ui/HelpScreen.d.ts.map +0 -1
- package/dist/two-d/ui/HelpScreen.js +0 -59
- package/dist/two-d/ui/HelpScreen.js.map +0 -1
- package/dist/two-d/ui/IconGrid.d.ts +0 -143
- package/dist/two-d/ui/IconGrid.d.ts.map +0 -1
- package/dist/two-d/ui/IconGrid.js +0 -327
- package/dist/two-d/ui/IconGrid.js.map +0 -1
- package/dist/two-d/ui/Label.d.ts +0 -63
- package/dist/two-d/ui/Label.d.ts.map +0 -1
- package/dist/two-d/ui/Label.js +0 -134
- package/dist/two-d/ui/Label.js.map +0 -1
- package/dist/two-d/ui/Layout.d.ts +0 -139
- package/dist/two-d/ui/Layout.d.ts.map +0 -1
- package/dist/two-d/ui/Layout.js +0 -221
- package/dist/two-d/ui/Layout.js.map +0 -1
- package/dist/two-d/ui/ListView.d.ts +0 -130
- package/dist/two-d/ui/ListView.d.ts.map +0 -1
- package/dist/two-d/ui/ListView.js +0 -326
- package/dist/two-d/ui/ListView.js.map +0 -1
- package/dist/two-d/ui/LoadingScreen.d.ts +0 -54
- package/dist/two-d/ui/LoadingScreen.d.ts.map +0 -1
- package/dist/two-d/ui/LoadingScreen.js +0 -87
- package/dist/two-d/ui/LoadingScreen.js.map +0 -1
- package/dist/two-d/ui/MarkupText.d.ts +0 -66
- package/dist/two-d/ui/MarkupText.d.ts.map +0 -1
- package/dist/two-d/ui/MarkupText.js +0 -156
- package/dist/two-d/ui/MarkupText.js.map +0 -1
- package/dist/two-d/ui/MessageBox.d.ts +0 -134
- package/dist/two-d/ui/MessageBox.d.ts.map +0 -1
- package/dist/two-d/ui/MessageBox.js +0 -263
- package/dist/two-d/ui/MessageBox.js.map +0 -1
- package/dist/two-d/ui/MessageLog.d.ts +0 -90
- package/dist/two-d/ui/MessageLog.d.ts.map +0 -1
- package/dist/two-d/ui/MessageLog.js +0 -131
- package/dist/two-d/ui/MessageLog.js.map +0 -1
- package/dist/two-d/ui/Meter.d.ts +0 -76
- package/dist/two-d/ui/Meter.d.ts.map +0 -1
- package/dist/two-d/ui/Meter.js +0 -134
- package/dist/two-d/ui/Meter.js.map +0 -1
- package/dist/two-d/ui/NinePatch.d.ts +0 -49
- package/dist/two-d/ui/NinePatch.d.ts.map +0 -1
- package/dist/two-d/ui/NinePatch.js +0 -59
- package/dist/two-d/ui/NinePatch.js.map +0 -1
- package/dist/two-d/ui/OnScreenKeyboard.d.ts +0 -91
- package/dist/two-d/ui/OnScreenKeyboard.d.ts.map +0 -1
- package/dist/two-d/ui/OnScreenKeyboard.js +0 -109
- package/dist/two-d/ui/OnScreenKeyboard.js.map +0 -1
- package/dist/two-d/ui/RadioGroup.d.ts +0 -68
- package/dist/two-d/ui/RadioGroup.d.ts.map +0 -1
- package/dist/two-d/ui/RadioGroup.js +0 -177
- package/dist/two-d/ui/RadioGroup.js.map +0 -1
- package/dist/two-d/ui/RebindScreen.d.ts +0 -70
- package/dist/two-d/ui/RebindScreen.d.ts.map +0 -1
- package/dist/two-d/ui/RebindScreen.js +0 -129
- package/dist/two-d/ui/RebindScreen.js.map +0 -1
- package/dist/two-d/ui/RichLabel.d.ts +0 -62
- package/dist/two-d/ui/RichLabel.d.ts.map +0 -1
- package/dist/two-d/ui/RichLabel.js +0 -146
- package/dist/two-d/ui/RichLabel.js.map +0 -1
- package/dist/two-d/ui/ScrollBox.d.ts +0 -163
- package/dist/two-d/ui/ScrollBox.d.ts.map +0 -1
- package/dist/two-d/ui/ScrollBox.js +0 -340
- package/dist/two-d/ui/ScrollBox.js.map +0 -1
- package/dist/two-d/ui/ScrollText.d.ts +0 -131
- package/dist/two-d/ui/ScrollText.d.ts.map +0 -1
- package/dist/two-d/ui/ScrollText.js +0 -218
- package/dist/two-d/ui/ScrollText.js.map +0 -1
- package/dist/two-d/ui/SelectionModel.d.ts +0 -50
- package/dist/two-d/ui/SelectionModel.d.ts.map +0 -1
- package/dist/two-d/ui/SelectionModel.js +0 -73
- package/dist/two-d/ui/SelectionModel.js.map +0 -1
- package/dist/two-d/ui/SettingsScreen.d.ts +0 -112
- package/dist/two-d/ui/SettingsScreen.d.ts.map +0 -1
- package/dist/two-d/ui/SettingsScreen.js +0 -338
- package/dist/two-d/ui/SettingsScreen.js.map +0 -1
- package/dist/two-d/ui/Skins.d.ts +0 -59
- package/dist/two-d/ui/Skins.d.ts.map +0 -1
- package/dist/two-d/ui/Skins.js +0 -77
- package/dist/two-d/ui/Skins.js.map +0 -1
- package/dist/two-d/ui/Slider.d.ts +0 -91
- package/dist/two-d/ui/Slider.d.ts.map +0 -1
- package/dist/two-d/ui/Slider.js +0 -170
- package/dist/two-d/ui/Slider.js.map +0 -1
- package/dist/two-d/ui/Spinner.d.ts +0 -67
- package/dist/two-d/ui/Spinner.d.ts.map +0 -1
- package/dist/two-d/ui/Spinner.js +0 -137
- package/dist/two-d/ui/Spinner.js.map +0 -1
- package/dist/two-d/ui/StatsScreen.d.ts +0 -40
- package/dist/two-d/ui/StatsScreen.d.ts.map +0 -1
- package/dist/two-d/ui/StatsScreen.js +0 -42
- package/dist/two-d/ui/StatsScreen.js.map +0 -1
- package/dist/two-d/ui/TabbedList.d.ts +0 -118
- package/dist/two-d/ui/TabbedList.d.ts.map +0 -1
- package/dist/two-d/ui/TabbedList.js +0 -221
- package/dist/two-d/ui/TabbedList.js.map +0 -1
- package/dist/two-d/ui/TextModel.d.ts +0 -90
- package/dist/two-d/ui/TextModel.d.ts.map +0 -1
- package/dist/two-d/ui/TextModel.js +0 -175
- package/dist/two-d/ui/TextModel.js.map +0 -1
- package/dist/two-d/ui/TextPrompt.d.ts +0 -122
- package/dist/two-d/ui/TextPrompt.d.ts.map +0 -1
- package/dist/two-d/ui/TextPrompt.js +0 -236
- package/dist/two-d/ui/TextPrompt.js.map +0 -1
- package/dist/two-d/ui/TextSharpness.d.ts +0 -33
- package/dist/two-d/ui/TextSharpness.d.ts.map +0 -1
- package/dist/two-d/ui/TextSharpness.js +0 -56
- package/dist/two-d/ui/TextSharpness.js.map +0 -1
- package/dist/two-d/ui/Toast.d.ts +0 -57
- package/dist/two-d/ui/Toast.d.ts.map +0 -1
- package/dist/two-d/ui/Toast.js +0 -101
- package/dist/two-d/ui/Toast.js.map +0 -1
- package/dist/two-d/ui/Tooltip.d.ts +0 -177
- package/dist/two-d/ui/Tooltip.d.ts.map +0 -1
- package/dist/two-d/ui/Tooltip.js +0 -275
- package/dist/two-d/ui/Tooltip.js.map +0 -1
- package/dist/two-d/ui/TreeView.d.ts +0 -68
- package/dist/two-d/ui/TreeView.d.ts.map +0 -1
- package/dist/two-d/ui/TreeView.js +0 -133
- package/dist/two-d/ui/TreeView.js.map +0 -1
- package/dist/two-d/ui/VerticalLabel.d.ts +0 -69
- package/dist/two-d/ui/VerticalLabel.d.ts.map +0 -1
- package/dist/two-d/ui/VerticalLabel.js +0 -110
- package/dist/two-d/ui/VerticalLabel.js.map +0 -1
- package/dist/two-d/ui/Window.d.ts +0 -188
- package/dist/two-d/ui/Window.d.ts.map +0 -1
- package/dist/two-d/ui/Window.js +0 -311
- package/dist/two-d/ui/Window.js.map +0 -1
- package/dist/two-d/ui/WindowStack.d.ts +0 -63
- package/dist/two-d/ui/WindowStack.d.ts.map +0 -1
- package/dist/two-d/ui/WindowStack.js +0 -132
- package/dist/two-d/ui/WindowStack.js.map +0 -1
- package/dist/two-d/ui/a11y.d.ts +0 -43
- package/dist/two-d/ui/a11y.d.ts.map +0 -1
- package/dist/two-d/ui/a11y.js +0 -79
- package/dist/two-d/ui/a11y.js.map +0 -1
- package/dist/two-d/ui/contrast.d.ts +0 -30
- package/dist/two-d/ui/contrast.d.ts.map +0 -1
- package/dist/two-d/ui/contrast.js +0 -42
- package/dist/two-d/ui/contrast.js.map +0 -1
- package/dist/two-d/ui/index.d.ts +0 -96
- package/dist/two-d/ui/index.d.ts.map +0 -1
- package/dist/two-d/ui/index.js +0 -49
- package/dist/two-d/ui/index.js.map +0 -1
- package/dist/two-d/ui/markdown.d.ts +0 -55
- package/dist/two-d/ui/markdown.d.ts.map +0 -1
- package/dist/two-d/ui/markdown.js +0 -147
- package/dist/two-d/ui/markdown.js.map +0 -1
- package/dist/two-d/ui/markup.d.ts +0 -189
- package/dist/two-d/ui/markup.d.ts.map +0 -1
- package/dist/two-d/ui/markup.js +0 -387
- package/dist/two-d/ui/markup.js.map +0 -1
- package/dist/two-d/ui/reveal.d.ts +0 -41
- package/dist/two-d/ui/reveal.d.ts.map +0 -1
- package/dist/two-d/ui/reveal.js +0 -22
- package/dist/two-d/ui/reveal.js.map +0 -1
- package/dist/two-d/ui/theme.d.ts +0 -133
- package/dist/two-d/ui/theme.d.ts.map +0 -1
- package/dist/two-d/ui/theme.js +0 -122
- package/dist/two-d/ui/theme.js.map +0 -1
- package/dist/two-d/ui/themedText.d.ts +0 -20
- package/dist/two-d/ui/themedText.d.ts.map +0 -1
- package/dist/two-d/ui/themedText.js +0 -9
- package/dist/two-d/ui/themedText.js.map +0 -1
- package/dist/version.d.ts +0 -13
- package/dist/version.d.ts.map +0 -1
- package/dist/version.js +0 -13
- package/dist/version.js.map +0 -1
- package/dist/world/Encounters.d.ts +0 -32
- package/dist/world/Encounters.d.ts.map +0 -1
- package/dist/world/Encounters.js +0 -9
- package/dist/world/Encounters.js.map +0 -1
- package/dist/world/Environment.d.ts +0 -58
- package/dist/world/Environment.d.ts.map +0 -1
- package/dist/world/Environment.js +0 -89
- package/dist/world/Environment.js.map +0 -1
- package/dist/world/Overworld.d.ts +0 -39
- package/dist/world/Overworld.d.ts.map +0 -1
- package/dist/world/Overworld.js +0 -40
- package/dist/world/Overworld.js.map +0 -1
- package/dist/world/SideTurns.d.ts +0 -115
- package/dist/world/SideTurns.d.ts.map +0 -1
- package/dist/world/SideTurns.js +0 -138
- package/dist/world/SideTurns.js.map +0 -1
- package/dist/world/TurnClock.d.ts +0 -41
- package/dist/world/TurnClock.d.ts.map +0 -1
- package/dist/world/TurnClock.js +0 -49
- package/dist/world/TurnClock.js.map +0 -1
- package/dist/world/World.d.ts +0 -64
- package/dist/world/World.d.ts.map +0 -1
- package/dist/world/World.js +0 -91
- package/dist/world/World.js.map +0 -1
- package/dist/world/index.d.ts +0 -12
- package/dist/world/index.d.ts.map +0 -1
- package/dist/world/index.js +0 -7
- package/dist/world/index.js.map +0 -1
- package/sbom.cdx.json +0 -5996
- package/tools/mwl.mjs +0 -466
- package/tools/vendored/rgssad-wasm/LICENSE-MIT +0 -21
- package/tools/vendored/rgssad-wasm/README.md +0 -15
- package/tools/vendored/rgssad-wasm/package.json +0 -17
- package/tools/vendored/rgssad-wasm/rgssad_wasm.d.ts +0 -41
- package/tools/vendored/rgssad-wasm/rgssad_wasm.js +0 -6
- package/tools/vendored/rgssad-wasm/rgssad_wasm_bg.js +0 -399
- package/tools/vendored/rgssad-wasm/rgssad_wasm_bg.wasm +0 -0
- package/tools/vendored/rgssad-wasm/rgssad_wasm_bg.wasm.d.ts +0 -17
- package/tools.md +0 -219
package/dist/mwl/schema.js
DELETED
|
@@ -1,979 +0,0 @@
|
|
|
1
|
-
import { coerceCsvValue } from '../core/Csv.js';
|
|
2
|
-
/** Published MWL schema identifiers understood by the compiler and migration tooling.
|
|
3
|
-
*
|
|
4
|
-
* @example
|
|
5
|
-
* ```ts
|
|
6
|
-
* import { MWL_SCHEMA_01, MWL_SCHEMA_10 } from '@datamoc/mw_games/mwl';
|
|
7
|
-
*
|
|
8
|
-
* console.log(MWL_SCHEMA_01, MWL_SCHEMA_10); // '0.1', '1.0'
|
|
9
|
-
* ```
|
|
10
|
-
*/
|
|
11
|
-
export const MWL_SCHEMA_01 = '0.1';
|
|
12
|
-
export const MWL_SCHEMA_10 = '1.0';
|
|
13
|
-
/**
|
|
14
|
-
* Parse the compact `name:type|name:type` declaration used by MWL tables.
|
|
15
|
-
*
|
|
16
|
-
* @example
|
|
17
|
-
* ```ts
|
|
18
|
-
* import { parseTableColumns } from '@datamoc/mw_games/mwl';
|
|
19
|
-
*
|
|
20
|
-
* console.log(parseTableColumns('id:string|cost:number'));
|
|
21
|
-
* ```
|
|
22
|
-
*/
|
|
23
|
-
export function parseTableColumns(value) {
|
|
24
|
-
const columns = [];
|
|
25
|
-
for (const part of value.split('|')) {
|
|
26
|
-
const separator = part.indexOf(':');
|
|
27
|
-
if (separator <= 0 || separator === part.length - 1)
|
|
28
|
-
throw new Error(`invalid table column "${part}"`);
|
|
29
|
-
const name = part.slice(0, separator).trim();
|
|
30
|
-
const type = part.slice(separator + 1).trim();
|
|
31
|
-
if (!/^[A-Za-z_][\w.-]*$/.test(name))
|
|
32
|
-
throw new Error(`invalid table column name "${name}"`);
|
|
33
|
-
if (!['string', 'number', 'boolean', 'list', 'map'].includes(type))
|
|
34
|
-
throw new Error(`invalid table column type "${type}"`);
|
|
35
|
-
if (columns.some((column) => column.name === name))
|
|
36
|
-
throw new Error(`duplicate table column "${name}"`);
|
|
37
|
-
columns.push({ name, type });
|
|
38
|
-
}
|
|
39
|
-
if (columns.length === 0)
|
|
40
|
-
throw new Error('table must declare at least one column');
|
|
41
|
-
return columns;
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* The `0.1` MWL tag schema: every tag with its attributes, children and `ref` targets. Pass a
|
|
45
|
-
* different record to `compile`/`validate` to extend or replace the vocabulary.
|
|
46
|
-
*
|
|
47
|
-
* @example
|
|
48
|
-
* ```ts
|
|
49
|
-
* import { schema01 } from '@datamoc/mw_games/mwl';
|
|
50
|
-
*
|
|
51
|
-
* console.log(Object.keys(schema01).includes('game')); // true
|
|
52
|
-
* ```
|
|
53
|
-
*/
|
|
54
|
-
export const schema01 = {
|
|
55
|
-
game: {
|
|
56
|
-
attributes: {
|
|
57
|
-
schema: 'string',
|
|
58
|
-
title: 'string',
|
|
59
|
-
data_root: 'string',
|
|
60
|
-
start_scene: 'id',
|
|
61
|
-
default_schedule: 'id',
|
|
62
|
-
save_slot: 'string',
|
|
63
|
-
turn_limit: 'integer',
|
|
64
|
-
},
|
|
65
|
-
children: [
|
|
66
|
-
'campaign',
|
|
67
|
-
'terrain_type',
|
|
68
|
-
'movetype',
|
|
69
|
-
'unit_type',
|
|
70
|
-
'unit',
|
|
71
|
-
'side',
|
|
72
|
-
'map',
|
|
73
|
-
'schedule',
|
|
74
|
-
'event',
|
|
75
|
-
'objectives',
|
|
76
|
-
'trait',
|
|
77
|
-
'weapon_special',
|
|
78
|
-
'dialogue',
|
|
79
|
-
'save',
|
|
80
|
-
'item',
|
|
81
|
-
'inventory',
|
|
82
|
-
'monster',
|
|
83
|
-
'status',
|
|
84
|
-
'loot',
|
|
85
|
-
'turn_clock',
|
|
86
|
-
'battle_move',
|
|
87
|
-
'type_matchup',
|
|
88
|
-
'evolution',
|
|
89
|
-
'table',
|
|
90
|
-
//scenario-level data: placements, story beats, and named roles
|
|
91
|
-
'object',
|
|
92
|
-
'story',
|
|
93
|
-
'role',
|
|
94
|
-
],
|
|
95
|
-
},
|
|
96
|
-
campaign: {
|
|
97
|
-
attributes: {
|
|
98
|
-
id: 'id',
|
|
99
|
-
name: 'string',
|
|
100
|
-
title: 'string',
|
|
101
|
-
description: 'string',
|
|
102
|
-
start_scene: 'id',
|
|
103
|
-
first_scenario: 'id',
|
|
104
|
-
},
|
|
105
|
-
// Scenario and campaign-extension tags belong to the owning game.
|
|
106
|
-
openChildren: true,
|
|
107
|
-
},
|
|
108
|
-
table: {
|
|
109
|
-
attributes: { id: 'id', columns: 'string', list_delimiter: 'string', map_delimiter: 'string' },
|
|
110
|
-
children: ['row'],
|
|
111
|
-
},
|
|
112
|
-
row: { openAttributes: 'string' },
|
|
113
|
-
terrain_type: {
|
|
114
|
-
attributes: {
|
|
115
|
-
id: 'id',
|
|
116
|
-
string: 'string',
|
|
117
|
-
aliasof: 'string',
|
|
118
|
-
mvt_alias: 'string',
|
|
119
|
-
default_base: 'string',
|
|
120
|
-
heals: 'integer',
|
|
121
|
-
gives_income: 'boolean',
|
|
122
|
-
map_code: 'string',
|
|
123
|
-
base_tile: 'string',
|
|
124
|
-
overlay_tile: 'string',
|
|
125
|
-
defense: 'number',
|
|
126
|
-
healing: 'number',
|
|
127
|
-
},
|
|
128
|
-
},
|
|
129
|
-
movetype: { attributes: { id: 'id', name: 'string' }, children: ['movement_costs', 'defense', 'resistance'] },
|
|
130
|
-
// Open maps: every attribute is a terrain or damage-type id, every value a number.
|
|
131
|
-
movement_costs: { openAttributes: 'number' },
|
|
132
|
-
defense: { openAttributes: 'number' },
|
|
133
|
-
resistance: { openAttributes: 'number' },
|
|
134
|
-
unit_type: {
|
|
135
|
-
attributes: {
|
|
136
|
-
// Wesnoth unit type ids may contain spaces ("Drake Arbiter"), so this is a
|
|
137
|
-
// string rather than the stricter id type.
|
|
138
|
-
id: 'string',
|
|
139
|
-
name: 'string',
|
|
140
|
-
description: 'string',
|
|
141
|
-
image: 'string',
|
|
142
|
-
image_icon: 'string',
|
|
143
|
-
profile: 'string',
|
|
144
|
-
sound: 'string',
|
|
145
|
-
hitpoints: 'integer',
|
|
146
|
-
movement: 'integer',
|
|
147
|
-
movement_type: 'id',
|
|
148
|
-
movetype: 'id',
|
|
149
|
-
experience: 'integer',
|
|
150
|
-
level: 'integer',
|
|
151
|
-
alignment: 'id',
|
|
152
|
-
cost: 'integer',
|
|
153
|
-
advances_to: 'string',
|
|
154
|
-
race: 'id',
|
|
155
|
-
usage: 'id',
|
|
156
|
-
},
|
|
157
|
-
children: ['attack', 'trait', 'ability'],
|
|
158
|
-
},
|
|
159
|
-
unit: {
|
|
160
|
-
attributes: {
|
|
161
|
-
id: 'id',
|
|
162
|
-
type: 'string',
|
|
163
|
-
side: 'string',
|
|
164
|
-
name: 'string',
|
|
165
|
-
role: 'string',
|
|
166
|
-
can_recruit: 'boolean',
|
|
167
|
-
hp: 'integer',
|
|
168
|
-
x: 'integer',
|
|
169
|
-
y: 'integer',
|
|
170
|
-
},
|
|
171
|
-
},
|
|
172
|
-
attack: {
|
|
173
|
-
attributes: {
|
|
174
|
-
id: 'id',
|
|
175
|
-
// Unit references are strings: converted unit ids may contain spaces.
|
|
176
|
-
attacker: 'string',
|
|
177
|
-
defender: 'string',
|
|
178
|
-
target: 'string',
|
|
179
|
-
amount: 'integer',
|
|
180
|
-
weapon: 'id',
|
|
181
|
-
name: 'string',
|
|
182
|
-
sound: 'string',
|
|
183
|
-
description: 'string',
|
|
184
|
-
type: 'id',
|
|
185
|
-
range: 'id',
|
|
186
|
-
damage: 'integer',
|
|
187
|
-
number: 'integer',
|
|
188
|
-
strikes: 'integer',
|
|
189
|
-
icon: 'string',
|
|
190
|
-
specials: 'string',
|
|
191
|
-
},
|
|
192
|
-
},
|
|
193
|
-
side: {
|
|
194
|
-
attributes: {
|
|
195
|
-
// Side ids are usually numbers in MWL content and converted Wesnoth data, but the
|
|
196
|
-
// world keys sides by this id and `unit.side` holds it, so a named side is allowed.
|
|
197
|
-
id: 'string',
|
|
198
|
-
controller: 'id',
|
|
199
|
-
gold: 'integer',
|
|
200
|
-
income: 'integer',
|
|
201
|
-
income_base: 'integer',
|
|
202
|
-
income_per_village: 'integer',
|
|
203
|
-
leader: 'id',
|
|
204
|
-
team: 'integer',
|
|
205
|
-
recruit: 'string',
|
|
206
|
-
color: 'string',
|
|
207
|
-
// Wesnoth's own side keys, as its data writes them: team_name groups sides into teams,
|
|
208
|
-
// share_vision says whether a side shares what it sees, and the rest are flags a game
|
|
209
|
-
// reads (fog/shroud/hidden/heal are yes/no there, not numbers).
|
|
210
|
-
team_name: 'string',
|
|
211
|
-
user_team_name: 'string',
|
|
212
|
-
share_vision: 'string',
|
|
213
|
-
village_gold: 'integer',
|
|
214
|
-
heal: 'boolean',
|
|
215
|
-
fog: 'boolean',
|
|
216
|
-
shroud: 'boolean',
|
|
217
|
-
hidden: 'boolean',
|
|
218
|
-
flag: 'string',
|
|
219
|
-
},
|
|
220
|
-
},
|
|
221
|
-
map: { attributes: { id: 'id', name: 'string', file: 'string', terrain: 'string' }, children: ['start'] },
|
|
222
|
-
start: { attributes: { side: 'string', x: 'integer', y: 'integer' } },
|
|
223
|
-
schedule: { attributes: { id: 'id' }, children: ['time'] },
|
|
224
|
-
time: { attributes: { id: 'id', name: 'string', lawful_bonus: 'number' } },
|
|
225
|
-
event: {
|
|
226
|
-
attributes: {
|
|
227
|
-
id: 'id',
|
|
228
|
-
on: 'id',
|
|
229
|
-
trigger: 'id',
|
|
230
|
-
// `on=moveto` filters. All optional: `[event] on=moveto unit=scout` fires
|
|
231
|
-
// for any hex that unit reaches, `x`/`y` narrow it to one hex.
|
|
232
|
-
x: 'coordinate',
|
|
233
|
-
y: 'coordinate',
|
|
234
|
-
side: 'string',
|
|
235
|
-
unit: 'string',
|
|
236
|
-
// Defaults to true for moveto (a story beat fires once) and false for
|
|
237
|
-
// start/turn (a per-turn event has to repeat).
|
|
238
|
-
once: 'boolean',
|
|
239
|
-
},
|
|
240
|
-
children: [
|
|
241
|
-
'condition',
|
|
242
|
-
'filter',
|
|
243
|
-
'filter_condition',
|
|
244
|
-
'while',
|
|
245
|
-
'foreach',
|
|
246
|
-
'switch',
|
|
247
|
-
'command',
|
|
248
|
-
'say',
|
|
249
|
-
'dialogue',
|
|
250
|
-
'move',
|
|
251
|
-
'attack',
|
|
252
|
-
'spawn',
|
|
253
|
-
'kill',
|
|
254
|
-
'gold',
|
|
255
|
-
'endlevel',
|
|
256
|
-
'set_variable',
|
|
257
|
-
'if',
|
|
258
|
-
'else',
|
|
259
|
-
'message',
|
|
260
|
-
'teleport',
|
|
261
|
-
'end_turn',
|
|
262
|
-
'win',
|
|
263
|
-
'lose',
|
|
264
|
-
'hook',
|
|
265
|
-
//WML action vocabulary: unit bookkeeping, terrain/village/fog, and firing an event
|
|
266
|
-
'fire_event',
|
|
267
|
-
'store_unit',
|
|
268
|
-
'unstore_unit',
|
|
269
|
-
'recall',
|
|
270
|
-
'modify_unit',
|
|
271
|
-
'heal_unit',
|
|
272
|
-
'set_terrain',
|
|
273
|
-
'capture_village',
|
|
274
|
-
'clear_shroud',
|
|
275
|
-
'role',
|
|
276
|
-
],
|
|
277
|
-
},
|
|
278
|
-
objectives: {
|
|
279
|
-
attributes: { side: 'string', victory: 'string', defeat: 'string' },
|
|
280
|
-
children: ['victory', 'defeat'],
|
|
281
|
-
},
|
|
282
|
-
victory: {
|
|
283
|
-
attributes: {
|
|
284
|
-
side: 'string',
|
|
285
|
-
condition: 'id',
|
|
286
|
-
type: 'string',
|
|
287
|
-
x: 'integer',
|
|
288
|
-
y: 'integer',
|
|
289
|
-
side_filter: 'string',
|
|
290
|
-
turns: 'integer',
|
|
291
|
-
gold: 'integer',
|
|
292
|
-
hook: 'string',
|
|
293
|
-
// generic predicate parameter, for `condition=hook` objectives
|
|
294
|
-
value: 'integer',
|
|
295
|
-
},
|
|
296
|
-
},
|
|
297
|
-
defeat: {
|
|
298
|
-
attributes: {
|
|
299
|
-
side: 'string',
|
|
300
|
-
condition: 'id',
|
|
301
|
-
type: 'string',
|
|
302
|
-
x: 'integer',
|
|
303
|
-
y: 'integer',
|
|
304
|
-
side_filter: 'string',
|
|
305
|
-
turns: 'integer',
|
|
306
|
-
gold: 'integer',
|
|
307
|
-
hook: 'string',
|
|
308
|
-
value: 'integer',
|
|
309
|
-
},
|
|
310
|
-
},
|
|
311
|
-
condition: {
|
|
312
|
-
attributes: {
|
|
313
|
-
condition: 'id',
|
|
314
|
-
hook: 'string',
|
|
315
|
-
variable: 'string',
|
|
316
|
-
equals: 'string',
|
|
317
|
-
not_equals: 'string',
|
|
318
|
-
in: 'string',
|
|
319
|
-
not_in: 'string',
|
|
320
|
-
less_than: 'string',
|
|
321
|
-
greater_than: 'string',
|
|
322
|
-
less_than_or_equal_to: 'string',
|
|
323
|
-
greater_than_or_equal_to: 'string',
|
|
324
|
-
},
|
|
325
|
-
//free predicate attributes, so a port passes a predicate its context without
|
|
326
|
-
//extending the schema (same shape as the [predicate] tag's own attributes)
|
|
327
|
-
openAttributes: 'string',
|
|
328
|
-
},
|
|
329
|
-
filter: {
|
|
330
|
-
attributes: {
|
|
331
|
-
side: 'string',
|
|
332
|
-
type: 'string',
|
|
333
|
-
not_type: 'string',
|
|
334
|
-
unit: 'string',
|
|
335
|
-
name: 'string',
|
|
336
|
-
role: 'string',
|
|
337
|
-
// a location filter's x/y take the same ranges and lists a moveto event's do
|
|
338
|
-
x: 'coordinate',
|
|
339
|
-
y: 'coordinate',
|
|
340
|
-
level: 'integer',
|
|
341
|
-
alignment: 'id',
|
|
342
|
-
can_recruit: 'boolean',
|
|
343
|
-
leader: 'boolean',
|
|
344
|
-
},
|
|
345
|
-
},
|
|
346
|
-
filter_condition: { children: ['variable', 'have_unit', 'predicate'] },
|
|
347
|
-
variable: {
|
|
348
|
-
attributes: {
|
|
349
|
-
name: 'id',
|
|
350
|
-
equals: 'string',
|
|
351
|
-
not_equals: 'string',
|
|
352
|
-
in: 'string',
|
|
353
|
-
not_in: 'string',
|
|
354
|
-
less_than: 'string',
|
|
355
|
-
greater_than: 'string',
|
|
356
|
-
less_than_or_equal_to: 'string',
|
|
357
|
-
greater_than_or_equal_to: 'string',
|
|
358
|
-
},
|
|
359
|
-
},
|
|
360
|
-
have_unit: {
|
|
361
|
-
attributes: {
|
|
362
|
-
id: 'string',
|
|
363
|
-
type: 'string',
|
|
364
|
-
side: 'string',
|
|
365
|
-
name: 'string',
|
|
366
|
-
role: 'string',
|
|
367
|
-
can_recruit: 'boolean',
|
|
368
|
-
x: 'coordinate',
|
|
369
|
-
y: 'coordinate',
|
|
370
|
-
},
|
|
371
|
-
},
|
|
372
|
-
predicate: { attributes: { name: 'id' }, openAttributes: 'string' },
|
|
373
|
-
command: {
|
|
374
|
-
attributes: {
|
|
375
|
-
name: 'id',
|
|
376
|
-
target: 'string',
|
|
377
|
-
path: 'string',
|
|
378
|
-
value: 'string',
|
|
379
|
-
// `[command] name="set_variable"` is the other spelling of the same effect,
|
|
380
|
-
// and takes the same explicit `mode` and computed `path`.
|
|
381
|
-
mode: ['literal', 'number', 'expression'],
|
|
382
|
-
amount: 'integer',
|
|
383
|
-
x: 'integer',
|
|
384
|
-
y: 'integer',
|
|
385
|
-
hp: 'integer',
|
|
386
|
-
},
|
|
387
|
-
},
|
|
388
|
-
move: { attributes: { unit: 'string', target: 'string', x: 'integer', y: 'integer' } },
|
|
389
|
-
spawn: { attributes: { id: 'string', type: 'string', side: 'string', x: 'integer', y: 'integer', hp: 'integer' } },
|
|
390
|
-
kill: { attributes: { unit: 'string', target: 'string' }, openAttributes: 'string' },
|
|
391
|
-
gold: { attributes: { side: 'string', delta: 'integer', amount: 'integer' } },
|
|
392
|
-
endlevel: {
|
|
393
|
-
attributes: {
|
|
394
|
-
result: 'id',
|
|
395
|
-
side: 'string',
|
|
396
|
-
bonus: 'integer',
|
|
397
|
-
carryover_percentage: 'integer',
|
|
398
|
-
carryover_add: 'boolean',
|
|
399
|
-
next_scenario: 'id',
|
|
400
|
-
},
|
|
401
|
-
},
|
|
402
|
-
set_variable: {
|
|
403
|
-
attributes: {
|
|
404
|
-
name: 'id',
|
|
405
|
-
target: 'id',
|
|
406
|
-
// A path content computes (`zombies[$index].allow_recruit`, `$target`), so it is a
|
|
407
|
-
// string rather than an `id`: an id does not hold `$`, and an expression inside the
|
|
408
|
-
// brackets is not a whole number either.
|
|
409
|
-
path: 'string',
|
|
410
|
-
value: 'string',
|
|
411
|
-
mode: ['literal', 'number', 'expression'],
|
|
412
|
-
},
|
|
413
|
-
},
|
|
414
|
-
if: {
|
|
415
|
-
attributes: { test: 'string' },
|
|
416
|
-
children: [
|
|
417
|
-
'condition',
|
|
418
|
-
'while',
|
|
419
|
-
'foreach',
|
|
420
|
-
'switch',
|
|
421
|
-
'if',
|
|
422
|
-
'else',
|
|
423
|
-
'command',
|
|
424
|
-
'message',
|
|
425
|
-
'move',
|
|
426
|
-
'attack',
|
|
427
|
-
'spawn',
|
|
428
|
-
'kill',
|
|
429
|
-
'gold',
|
|
430
|
-
'set_variable',
|
|
431
|
-
'win',
|
|
432
|
-
'lose',
|
|
433
|
-
'hook',
|
|
434
|
-
],
|
|
435
|
-
},
|
|
436
|
-
else: {
|
|
437
|
-
children: [
|
|
438
|
-
'condition',
|
|
439
|
-
'while',
|
|
440
|
-
'foreach',
|
|
441
|
-
'switch',
|
|
442
|
-
'if',
|
|
443
|
-
'else',
|
|
444
|
-
'command',
|
|
445
|
-
'message',
|
|
446
|
-
'move',
|
|
447
|
-
'attack',
|
|
448
|
-
'spawn',
|
|
449
|
-
'kill',
|
|
450
|
-
'gold',
|
|
451
|
-
'set_variable',
|
|
452
|
-
'win',
|
|
453
|
-
'lose',
|
|
454
|
-
'hook',
|
|
455
|
-
],
|
|
456
|
-
},
|
|
457
|
-
while: {
|
|
458
|
-
attributes: { test: 'string', max_iterations: 'integer', on_limit: 'id' },
|
|
459
|
-
children: [
|
|
460
|
-
'condition',
|
|
461
|
-
'while',
|
|
462
|
-
'foreach',
|
|
463
|
-
'switch',
|
|
464
|
-
'if',
|
|
465
|
-
'else',
|
|
466
|
-
'message',
|
|
467
|
-
'move',
|
|
468
|
-
'attack',
|
|
469
|
-
'spawn',
|
|
470
|
-
'kill',
|
|
471
|
-
'gold',
|
|
472
|
-
'set_variable',
|
|
473
|
-
'win',
|
|
474
|
-
'lose',
|
|
475
|
-
'hook',
|
|
476
|
-
],
|
|
477
|
-
},
|
|
478
|
-
foreach: {
|
|
479
|
-
attributes: { variable: 'id', item: 'id', index: 'id' },
|
|
480
|
-
children: [
|
|
481
|
-
'while',
|
|
482
|
-
'foreach',
|
|
483
|
-
'switch',
|
|
484
|
-
'if',
|
|
485
|
-
'else',
|
|
486
|
-
'message',
|
|
487
|
-
'move',
|
|
488
|
-
'attack',
|
|
489
|
-
'spawn',
|
|
490
|
-
'kill',
|
|
491
|
-
'gold',
|
|
492
|
-
'set_variable',
|
|
493
|
-
'win',
|
|
494
|
-
'lose',
|
|
495
|
-
'hook',
|
|
496
|
-
],
|
|
497
|
-
},
|
|
498
|
-
switch: {
|
|
499
|
-
attributes: { variable: 'id' },
|
|
500
|
-
children: ['case', 'default'],
|
|
501
|
-
},
|
|
502
|
-
case: {
|
|
503
|
-
attributes: { equals: 'string' },
|
|
504
|
-
children: [
|
|
505
|
-
'while',
|
|
506
|
-
'foreach',
|
|
507
|
-
'switch',
|
|
508
|
-
'if',
|
|
509
|
-
'else',
|
|
510
|
-
'message',
|
|
511
|
-
'move',
|
|
512
|
-
'attack',
|
|
513
|
-
'spawn',
|
|
514
|
-
'kill',
|
|
515
|
-
'gold',
|
|
516
|
-
'set_variable',
|
|
517
|
-
'win',
|
|
518
|
-
'lose',
|
|
519
|
-
'hook',
|
|
520
|
-
'dialogue',
|
|
521
|
-
],
|
|
522
|
-
},
|
|
523
|
-
default: {
|
|
524
|
-
children: [
|
|
525
|
-
'while',
|
|
526
|
-
'foreach',
|
|
527
|
-
'switch',
|
|
528
|
-
'if',
|
|
529
|
-
'else',
|
|
530
|
-
'message',
|
|
531
|
-
'move',
|
|
532
|
-
'attack',
|
|
533
|
-
'spawn',
|
|
534
|
-
'kill',
|
|
535
|
-
'gold',
|
|
536
|
-
'set_variable',
|
|
537
|
-
'win',
|
|
538
|
-
'lose',
|
|
539
|
-
'hook',
|
|
540
|
-
'dialogue',
|
|
541
|
-
],
|
|
542
|
-
},
|
|
543
|
-
message: {
|
|
544
|
-
// `speaker` is a display name, so it may contain spaces ("Orcish Grunt").
|
|
545
|
-
attributes: { speaker: 'string', text: 'string', value: 'string', portrait: 'string', side: 'string' },
|
|
546
|
-
},
|
|
547
|
-
teleport: { attributes: { unit: 'string', target: 'string', x: 'integer', y: 'integer' } },
|
|
548
|
-
end_turn: { attributes: {} },
|
|
549
|
-
win: { attributes: { side: 'string' } },
|
|
550
|
-
lose: { attributes: { side: 'string' } },
|
|
551
|
-
say: { attributes: { speaker: 'id', text: 'string' } },
|
|
552
|
-
dialogue: { attributes: { id: 'id', ref: 'id' }, children: ['say', 'choice', 'branch', 'message'] },
|
|
553
|
-
choice: { attributes: { text: 'string', event: 'id', variable: 'id', equals: 'string' }, children: ['branch'] },
|
|
554
|
-
branch: {
|
|
555
|
-
attributes: { text: 'string' },
|
|
556
|
-
children: ['message', 'say', 'command', 'set_variable', 'move', 'attack', 'spawn', 'kill', 'gold', 'hook'],
|
|
557
|
-
},
|
|
558
|
-
trait: { attributes: { id: 'id', name: 'string' }, children: ['effect'] },
|
|
559
|
-
ability: { attributes: { id: 'id', name: 'string' }, children: ['effect'] },
|
|
560
|
-
weapon_special: { attributes: { id: 'id', name: 'string' } },
|
|
561
|
-
// A hook call: `name` is `type:hookName` and any further attributes are
|
|
562
|
-
// passed to the hook as context.
|
|
563
|
-
hook: { attributes: { name: 'string' }, openAttributes: 'string' },
|
|
564
|
-
//WML action vocabulary (item 250). `[item]` is deliberately absent: the tag already means an
|
|
565
|
-
//inventory item definition here, and WML's map placement would collide with it.
|
|
566
|
-
fire_event: { attributes: { id: 'id', name: 'string' } },
|
|
567
|
-
store_unit: { attributes: { variable: 'string', name: 'string' }, children: ['filter'] },
|
|
568
|
-
unstore_unit: { attributes: { variable: 'string', name: 'string' } },
|
|
569
|
-
recall: {
|
|
570
|
-
attributes: { variable: 'string', id: 'string', unit: 'string', side: 'string', x: 'integer', y: 'integer' },
|
|
571
|
-
},
|
|
572
|
-
modify_unit: {
|
|
573
|
-
attributes: { hp: 'integer', moves: 'integer', type: 'string', side: 'string', alive: 'boolean' },
|
|
574
|
-
children: ['filter', 'set'],
|
|
575
|
-
},
|
|
576
|
-
set: { openAttributes: 'string' },
|
|
577
|
-
heal_unit: {
|
|
578
|
-
attributes: { amount: 'integer', hp: 'integer', side: 'string', type: 'string', x: 'integer', y: 'integer' },
|
|
579
|
-
children: ['filter'],
|
|
580
|
-
},
|
|
581
|
-
set_terrain: { attributes: { terrain: 'string', x: 'integer', y: 'integer' } },
|
|
582
|
-
capture_village: { attributes: { side: 'string', x: 'integer', y: 'integer', name: 'string' } },
|
|
583
|
-
clear_shroud: { attributes: { side: 'string', x: 'integer', y: 'integer', radius: 'integer' } },
|
|
584
|
-
role: {
|
|
585
|
-
attributes: {
|
|
586
|
-
role: 'string',
|
|
587
|
-
name: 'string',
|
|
588
|
-
type: 'string',
|
|
589
|
-
not_type: 'string',
|
|
590
|
-
unit: 'string',
|
|
591
|
-
side: 'string',
|
|
592
|
-
can_recruit: 'boolean',
|
|
593
|
-
x: 'integer',
|
|
594
|
-
y: 'integer',
|
|
595
|
-
},
|
|
596
|
-
children: ['filter'],
|
|
597
|
-
},
|
|
598
|
-
object: {
|
|
599
|
-
attributes: { id: 'id', name: 'string', image: 'string', side: 'string', x: 'integer', y: 'integer' },
|
|
600
|
-
children: ['filter'],
|
|
601
|
-
},
|
|
602
|
-
story: { attributes: { text: 'string', value: 'string', title: 'string', image: 'string', music: 'string' } },
|
|
603
|
-
item: {
|
|
604
|
-
attributes: {
|
|
605
|
-
id: 'id',
|
|
606
|
-
name: 'string',
|
|
607
|
-
slot: 'id',
|
|
608
|
-
stackable: 'boolean',
|
|
609
|
-
weight: 'number',
|
|
610
|
-
image: 'string',
|
|
611
|
-
icon: 'string',
|
|
612
|
-
},
|
|
613
|
-
children: ['effect'],
|
|
614
|
-
},
|
|
615
|
-
inventory: { attributes: { unit: 'string', side: 'string', items: 'string' } },
|
|
616
|
-
monster: {
|
|
617
|
-
attributes: {
|
|
618
|
-
id: 'string',
|
|
619
|
-
name: 'string',
|
|
620
|
-
hp: 'integer',
|
|
621
|
-
types: 'string',
|
|
622
|
-
attack: 'number',
|
|
623
|
-
defense: 'number',
|
|
624
|
-
speed: 'number',
|
|
625
|
-
accuracy: 'number',
|
|
626
|
-
evasion: 'number',
|
|
627
|
-
damage_min: 'integer',
|
|
628
|
-
damage_max: 'integer',
|
|
629
|
-
armor_min: 'integer',
|
|
630
|
-
armor_max: 'integer',
|
|
631
|
-
experience: 'integer',
|
|
632
|
-
max_level: 'integer',
|
|
633
|
-
image: 'string',
|
|
634
|
-
},
|
|
635
|
-
children: ['ability', 'loot'],
|
|
636
|
-
},
|
|
637
|
-
status: { attributes: { id: 'id', name: 'string', duration: 'integer', tick: 'string', modifiers: 'string' } },
|
|
638
|
-
loot: { attributes: { item: 'id', chance: 'number', quantity: 'integer', weight: 'number' } },
|
|
639
|
-
turn_clock: { attributes: { id: 'id', tick: 'number', hunger: 'number' } },
|
|
640
|
-
ai: {
|
|
641
|
-
attributes: {
|
|
642
|
-
id: 'id',
|
|
643
|
-
strategy: 'id',
|
|
644
|
-
target: 'id',
|
|
645
|
-
difficulty: 'number',
|
|
646
|
-
scope: 'id',
|
|
647
|
-
provider: 'id',
|
|
648
|
-
algorithm: 'id',
|
|
649
|
-
depth: 'integer',
|
|
650
|
-
max_nodes: 'integer',
|
|
651
|
-
player: 'string',
|
|
652
|
-
moves: 'string',
|
|
653
|
-
apply: 'string',
|
|
654
|
-
terminal: 'string',
|
|
655
|
-
evaluate: 'string',
|
|
656
|
-
},
|
|
657
|
-
children: ['behavior'],
|
|
658
|
-
},
|
|
659
|
-
behavior: { attributes: { id: 'id', when: 'string', action: 'string', hook: 'string' } },
|
|
660
|
-
battle_move: { attributes: { id: 'id', type: 'id', target: 'id', power: 'number', cost: 'number' } },
|
|
661
|
-
type_matchup: { attributes: { attacker: 'id', defender: 'id', multiplier: 'number' } },
|
|
662
|
-
evolution: { attributes: { from: 'id', into: 'id', level: 'integer' } },
|
|
663
|
-
effect: {
|
|
664
|
-
attributes: {
|
|
665
|
-
apply_to: 'id',
|
|
666
|
-
range: 'id',
|
|
667
|
-
increase: 'string',
|
|
668
|
-
increase_total: 'string',
|
|
669
|
-
increase_damage: 'string',
|
|
670
|
-
add: 'string',
|
|
671
|
-
sub: 'string',
|
|
672
|
-
multiply: 'string',
|
|
673
|
-
divide: 'string',
|
|
674
|
-
set: 'string',
|
|
675
|
-
},
|
|
676
|
-
},
|
|
677
|
-
save: { attributes: { version: 'integer', fields: 'string', migration: 'string' } },
|
|
678
|
-
};
|
|
679
|
-
/**
|
|
680
|
-
* The published MWL 1.0 vocabulary. Version 1.0 preserves the 0.1 tag and value contract while
|
|
681
|
-
* making the core structural requirements explicit. Migration is lossless for valid 0.1 data;
|
|
682
|
-
* game-owned extensions are still supplied through `schemas`.
|
|
683
|
-
*
|
|
684
|
-
* @example
|
|
685
|
-
* ```ts
|
|
686
|
-
* import { MWL_SCHEMA_10, schema10 } from '@datamoc/mw_games/mwl';
|
|
687
|
-
*
|
|
688
|
-
* console.log(MWL_SCHEMA_10, Object.hasOwn(schema10, 'game')); // '1.0', true
|
|
689
|
-
* ```
|
|
690
|
-
*/
|
|
691
|
-
export const schema10 = {
|
|
692
|
-
...schema01,
|
|
693
|
-
game: { ...schema01.game, required: ['schema'] },
|
|
694
|
-
table: { ...schema01.table, required: ['id', 'columns'], cardinality: { row: { min: 1 } } },
|
|
695
|
-
terrain_type: { ...schema01.terrain_type, required: ['id'] },
|
|
696
|
-
movetype: { ...schema01.movetype, required: ['id'] },
|
|
697
|
-
unit_type: { ...schema01.unit_type, required: ['id'] },
|
|
698
|
-
unit: { ...schema01.unit, required: ['id', 'type', 'side'] },
|
|
699
|
-
};
|
|
700
|
-
/**
|
|
701
|
-
* Validates a parsed node tree against a schema, returning diagnostics rather than throwing.
|
|
702
|
-
*
|
|
703
|
-
* @example
|
|
704
|
-
* ```ts
|
|
705
|
-
* import { parse, validate } from '@datamoc/mw_games/mwl';
|
|
706
|
-
*
|
|
707
|
-
* console.log(validate(parse("[{ tag: 'game', schema: 0.1 }]"))); // []
|
|
708
|
-
* ```
|
|
709
|
-
*/
|
|
710
|
-
export function validate(nodes, schemas = schema01) {
|
|
711
|
-
const diagnostics = [];
|
|
712
|
-
const ids = new Map();
|
|
713
|
-
const collectIds = (node) => {
|
|
714
|
-
const id = node.attributes.id;
|
|
715
|
-
if (id)
|
|
716
|
-
ids.set(id, [...(ids.get(id) ?? []), node]);
|
|
717
|
-
node.children.forEach(collectIds);
|
|
718
|
-
};
|
|
719
|
-
nodes.forEach(collectIds);
|
|
720
|
-
const references = [];
|
|
721
|
-
const visit = (node, openUnknown = false) => {
|
|
722
|
-
const definition = schemas[node.tag];
|
|
723
|
-
if (!definition) {
|
|
724
|
-
if (openUnknown) {
|
|
725
|
-
// An open child is a game-owned attribute bag. Keep walking its subtree so
|
|
726
|
-
// nested effect/filter nodes can remain opaque without losing their locations.
|
|
727
|
-
node.children.forEach((child) => visit(child, true));
|
|
728
|
-
return;
|
|
729
|
-
}
|
|
730
|
-
diagnostics.push({ code: 'MWL_UNKNOWN_TAG', message: `unknown tag ${node.tag}`, location: node.location });
|
|
731
|
-
return;
|
|
732
|
-
}
|
|
733
|
-
for (const name of Object.keys(node.attributes)) {
|
|
734
|
-
if (definition.openAttributes)
|
|
735
|
-
continue;
|
|
736
|
-
if (!definition.attributes || !(name in definition.attributes))
|
|
737
|
-
diagnostics.push({
|
|
738
|
-
code: 'MWL_UNKNOWN_ATTRIBUTE',
|
|
739
|
-
message: `unknown attribute ${name} on ${node.tag}`,
|
|
740
|
-
location: node.attributeLocations?.[name] ?? node.location,
|
|
741
|
-
});
|
|
742
|
-
}
|
|
743
|
-
for (const name of definition.required ?? []) {
|
|
744
|
-
if (node.attributes[name] === undefined)
|
|
745
|
-
diagnostics.push({
|
|
746
|
-
code: 'MWL_REQUIRED_ATTRIBUTE',
|
|
747
|
-
message: `${name} is required on ${node.tag}`,
|
|
748
|
-
location: node.location,
|
|
749
|
-
});
|
|
750
|
-
}
|
|
751
|
-
for (const [name, type] of Object.entries(definition.attributes ?? {})) {
|
|
752
|
-
const value = node.attributes[name];
|
|
753
|
-
if (value !== undefined && !validAttributeValue(value, type))
|
|
754
|
-
diagnostics.push({
|
|
755
|
-
code: 'MWL_VALUE',
|
|
756
|
-
message: `${name} must be ${attributeTypeDescription(type)}`,
|
|
757
|
-
location: node.valueLocations?.[name] ?? node.attributeLocations?.[name] ?? node.location,
|
|
758
|
-
});
|
|
759
|
-
if (value !== undefined && type === 'ref') {
|
|
760
|
-
const candidates = (ids.get(value) ?? []).filter((target) => {
|
|
761
|
-
const targetTag = definition.refTargets?.[name];
|
|
762
|
-
return !targetTag || targetTag === '*' || target.tag === targetTag;
|
|
763
|
-
});
|
|
764
|
-
if (candidates.length === 0)
|
|
765
|
-
diagnostics.push({
|
|
766
|
-
code: 'MWL_REF_MISSING',
|
|
767
|
-
message: `${name} references missing target ${value}`,
|
|
768
|
-
location: node.location,
|
|
769
|
-
});
|
|
770
|
-
else if (candidates.length > 1)
|
|
771
|
-
diagnostics.push({
|
|
772
|
-
code: 'MWL_REF_DUPLICATE',
|
|
773
|
-
message: `${name} references ambiguous target ${value}`,
|
|
774
|
-
location: node.location,
|
|
775
|
-
});
|
|
776
|
-
else if (definition.acyclicRefs?.includes(name))
|
|
777
|
-
references.push({ from: node, to: candidates[0], name });
|
|
778
|
-
}
|
|
779
|
-
}
|
|
780
|
-
if (definition.openAttributes) {
|
|
781
|
-
for (const [name, value] of Object.entries(node.attributes)) {
|
|
782
|
-
if (!validAttributeValue(value, definition.openAttributes))
|
|
783
|
-
diagnostics.push({
|
|
784
|
-
code: 'MWL_VALUE',
|
|
785
|
-
message: `${name} must be ${definition.openAttributes}`,
|
|
786
|
-
location: node.valueLocations?.[name] ?? node.attributeLocations?.[name] ?? node.location,
|
|
787
|
-
});
|
|
788
|
-
}
|
|
789
|
-
}
|
|
790
|
-
for (const child of node.children) {
|
|
791
|
-
if (!definition.openChildren && definition.children && !definition.children.includes(child.tag))
|
|
792
|
-
diagnostics.push({
|
|
793
|
-
code: 'MWL_CHILD',
|
|
794
|
-
message: `${child.tag} is not allowed inside ${node.tag}`,
|
|
795
|
-
location: child.location,
|
|
796
|
-
});
|
|
797
|
-
visit(child, definition.openChildren === true);
|
|
798
|
-
}
|
|
799
|
-
for (const [tag, bounds] of Object.entries(definition.cardinality ?? {})) {
|
|
800
|
-
const count = node.children.filter((child) => child.tag === tag).length;
|
|
801
|
-
if (bounds.min !== undefined && count < bounds.min)
|
|
802
|
-
diagnostics.push({
|
|
803
|
-
code: 'MWL_CARDINALITY',
|
|
804
|
-
message: `${node.tag} needs at least ${bounds.min} ${tag} child${bounds.min === 1 ? '' : 'ren'}`,
|
|
805
|
-
location: node.location,
|
|
806
|
-
});
|
|
807
|
-
if (bounds.max !== undefined && count > bounds.max)
|
|
808
|
-
diagnostics.push({
|
|
809
|
-
code: 'MWL_CARDINALITY',
|
|
810
|
-
message: `${node.tag} allows at most ${bounds.max} ${tag} child${bounds.max === 1 ? '' : 'ren'}`,
|
|
811
|
-
location: node.location,
|
|
812
|
-
});
|
|
813
|
-
}
|
|
814
|
-
};
|
|
815
|
-
nodes.forEach((node) => visit(node));
|
|
816
|
-
validateTables(nodes, diagnostics);
|
|
817
|
-
const visiting = new Set();
|
|
818
|
-
const visited = new Set();
|
|
819
|
-
const walkReference = (node, trail) => {
|
|
820
|
-
if (visiting.has(node)) {
|
|
821
|
-
const repeated = trail.indexOf(node);
|
|
822
|
-
diagnostics.push({
|
|
823
|
-
code: 'MWL_REF_CYCLE',
|
|
824
|
-
message: `reference cycle through ${trail
|
|
825
|
-
.slice(repeated)
|
|
826
|
-
.map((entry) => entry.attributes.id ?? entry.tag)
|
|
827
|
-
.join(' -> ')}`,
|
|
828
|
-
location: node.location,
|
|
829
|
-
});
|
|
830
|
-
return;
|
|
831
|
-
}
|
|
832
|
-
if (visited.has(node))
|
|
833
|
-
return;
|
|
834
|
-
visiting.add(node);
|
|
835
|
-
for (const reference of references.filter((entry) => entry.from === node))
|
|
836
|
-
walkReference(reference.to, [...trail, node]);
|
|
837
|
-
visiting.delete(node);
|
|
838
|
-
visited.add(node);
|
|
839
|
-
};
|
|
840
|
-
for (const reference of references)
|
|
841
|
-
walkReference(reference.from, []);
|
|
842
|
-
return diagnostics.sort((a, b) => a.location.line - b.location.line || a.location.column - b.location.column);
|
|
843
|
-
}
|
|
844
|
-
function validateTables(nodes, diagnostics) {
|
|
845
|
-
const visit = (node) => {
|
|
846
|
-
if (node.tag === 'table') {
|
|
847
|
-
let columns;
|
|
848
|
-
try {
|
|
849
|
-
columns = parseTableColumns(node.attributes.columns ?? '');
|
|
850
|
-
}
|
|
851
|
-
catch (error) {
|
|
852
|
-
diagnostics.push({
|
|
853
|
-
code: 'MWL_TABLE',
|
|
854
|
-
message: String(error).replace(/^Error: /, ''),
|
|
855
|
-
location: node.location,
|
|
856
|
-
});
|
|
857
|
-
columns = [];
|
|
858
|
-
}
|
|
859
|
-
const declared = new Map(columns.map((column) => [column.name, column]));
|
|
860
|
-
for (const row of node.children.filter((child) => child.tag === 'row')) {
|
|
861
|
-
for (const name of Object.keys(row.attributes)) {
|
|
862
|
-
if (!declared.has(name))
|
|
863
|
-
diagnostics.push({
|
|
864
|
-
code: 'MWL_TABLE',
|
|
865
|
-
message: `unknown table column ${name}`,
|
|
866
|
-
location: row.location,
|
|
867
|
-
});
|
|
868
|
-
}
|
|
869
|
-
for (const column of columns) {
|
|
870
|
-
const value = row.attributes[column.name];
|
|
871
|
-
if (value === undefined) {
|
|
872
|
-
diagnostics.push({
|
|
873
|
-
code: 'MWL_TABLE',
|
|
874
|
-
message: `missing table column ${column.name}`,
|
|
875
|
-
location: row.location,
|
|
876
|
-
});
|
|
877
|
-
continue;
|
|
878
|
-
}
|
|
879
|
-
try {
|
|
880
|
-
coerceTableValue(value, column.type, column.name, node.attributes.list_delimiter, node.attributes.map_delimiter);
|
|
881
|
-
}
|
|
882
|
-
catch (error) {
|
|
883
|
-
diagnostics.push({
|
|
884
|
-
code: 'MWL_TABLE',
|
|
885
|
-
message: String(error).replace(/^Error: /, ''),
|
|
886
|
-
location: row.location,
|
|
887
|
-
});
|
|
888
|
-
}
|
|
889
|
-
}
|
|
890
|
-
}
|
|
891
|
-
}
|
|
892
|
-
node.children.forEach(visit);
|
|
893
|
-
};
|
|
894
|
-
nodes.forEach(visit);
|
|
895
|
-
}
|
|
896
|
-
/**
|
|
897
|
-
* Coerces one table cell from text using the column's type, accepting `yes`/`no` for booleans.
|
|
898
|
-
*
|
|
899
|
-
* @example
|
|
900
|
-
* ```ts
|
|
901
|
-
* import { coerceTableValue } from '@datamoc/mw_games/mwl';
|
|
902
|
-
*
|
|
903
|
-
* console.log(coerceTableValue('3', 'number', 'cost')); // 3
|
|
904
|
-
* ```
|
|
905
|
-
*/
|
|
906
|
-
export function coerceTableValue(raw, type, column, listDelimiter = ';', mapDelimiter = '=') {
|
|
907
|
-
return coerceCsvValue(raw, type, {
|
|
908
|
-
column,
|
|
909
|
-
listDelimiter,
|
|
910
|
-
mapDelimiter,
|
|
911
|
-
acceptYesNo: true,
|
|
912
|
-
});
|
|
913
|
-
}
|
|
914
|
-
/**
|
|
915
|
-
* The rule behind the `id` value type: an identifier, allowed (unlike `ref`) to carry the
|
|
916
|
-
* `[...]` index brackets a WML variable path uses, since `[set_variable] name=` and every
|
|
917
|
-
* reader that takes that name type it as `id`. Exported so `readers.coerce` shares one
|
|
918
|
-
* definition with the schema: a name the compiler accepts is a name an adapter's reader
|
|
919
|
-
* accepts, rather than the two drifting into disagreeing about what an `id` is.
|
|
920
|
-
*
|
|
921
|
-
* @example
|
|
922
|
-
* ```ts
|
|
923
|
-
* import { isMwlId } from '@datamoc/mw_games/mwl';
|
|
924
|
-
*
|
|
925
|
-
* console.log(isMwlId('party[0].name')); // true - a variable path is an `id`
|
|
926
|
-
* console.log(isMwlId('0bad')); // false - it does not start like an identifier
|
|
927
|
-
* ```
|
|
928
|
-
*/
|
|
929
|
-
export function isMwlId(value) {
|
|
930
|
-
return /^[A-Za-z_][\w.[\]-]*$/.test(value);
|
|
931
|
-
}
|
|
932
|
-
/**
|
|
933
|
-
* Whether a value satisfies a declared attribute type. Exported because the check is not only
|
|
934
|
-
* the tag schema's: a hook declares its own attributes (item 321), and a game's `[hook]`
|
|
935
|
-
* invocations are checked against that declaration by the same rule.
|
|
936
|
-
*
|
|
937
|
-
* @example
|
|
938
|
-
* ```ts
|
|
939
|
-
* import { validAttributeValue } from '@datamoc/mw_games/mwl';
|
|
940
|
-
*
|
|
941
|
-
* console.log(validAttributeValue('yes', 'boolean')); // true
|
|
942
|
-
* ```
|
|
943
|
-
*/
|
|
944
|
-
export function validAttributeValue(value, type) {
|
|
945
|
-
if (isValueList(type))
|
|
946
|
-
return type.includes(value);
|
|
947
|
-
if (type === 'number')
|
|
948
|
-
return Number.isFinite(Number(value));
|
|
949
|
-
if (type === 'integer')
|
|
950
|
-
return /^-?\d+$/.test(value);
|
|
951
|
-
if (type === 'boolean')
|
|
952
|
-
return value === 'true' || value === 'false' || value === 'yes' || value === 'no';
|
|
953
|
-
if (type === 'ref')
|
|
954
|
-
return /^[A-Za-z_][\w.-]*$/.test(value);
|
|
955
|
-
if (type === 'coordinate')
|
|
956
|
-
return /^-?\d+(?:\s*,\s*-?\d+|\s*-\s*-?\d+)*$/.test(value);
|
|
957
|
-
if (type === 'id')
|
|
958
|
-
return isMwlId(value);
|
|
959
|
-
return true;
|
|
960
|
-
}
|
|
961
|
-
/**
|
|
962
|
-
* How a diagnostic describes a declared attribute type, naming the alternatives when the type
|
|
963
|
-
* is a closed list rather than one of the shared value types.
|
|
964
|
-
*
|
|
965
|
-
* @example
|
|
966
|
-
* ```ts
|
|
967
|
-
* import { attributeTypeDescription } from '@datamoc/mw_games/mwl';
|
|
968
|
-
*
|
|
969
|
-
* console.log(attributeTypeDescription(['literal', 'number'])); // 'one of literal, number'
|
|
970
|
-
* ```
|
|
971
|
-
*/
|
|
972
|
-
export function attributeTypeDescription(type) {
|
|
973
|
-
return isValueList(type) ? `one of ${type.join(', ')}` : type;
|
|
974
|
-
}
|
|
975
|
-
/** `Array.isArray` does not narrow a `readonly` array out of a union, so name the check. */
|
|
976
|
-
function isValueList(type) {
|
|
977
|
-
return Array.isArray(type);
|
|
978
|
-
}
|
|
979
|
-
//# sourceMappingURL=schema.js.map
|