How 1145141919810tonny/webgalgameengine works
Shiori is a visual-novel engine: authors supply scene scripts and assets, the launcher hosts the browser-based engine, and players experience dialogue, visuals, audio, and saved story progress. The graph separates launcher hosting, DSL compilation, browser runtime, and presentation. Relationships within ScriptingCore are supported by source-index references and excerpts; launcher-to-engine hosting is documented in the README. Several browser subsystems are represented as capabilities, but their internal wiring was not sampled.
Main entry points: DslRuntime.cs DSL runtime bridge · engine_command.js Story commands · Compiler.cs Scene compiler · engine_scene.js Scene execution
Components 23
Launcher hosting
- Shiori launcher
Shiori/MainWindow.xaml.cs - HTTP hosting
Shiori/HttpServer.cs - Virtual asset files
Shiori/VfsEngineFiles.cs - SGD container
Shiori/ContainerVfs.cs
DSL compilation
- DSL runtime bridge
ScriptingCore/Host/DslRuntime.cs - Scene parser
ScriptingCore/Parse/Parser.cs - Scene compiler
ScriptingCore/Compile/Compiler.cs - Macro catalog
ScriptingCore/Load/MacroCatalog.cs - Command registry
ScriptingCore/Schema/Registry.cs - Condition validation
ScriptingCore/Validate/ConditionRules.cs - Runtime JSON
ScriptingCore/Emit/DslNodeJson.cs
Story runtime
- Engine bootstrap
shiori engine/engine/engine_boot.js - Scene execution
shiori engine/engine/engine_scene.js - Story commands
shiori engine/engine/engine_command.js - Story variables
shiori engine/system/vars.js - Save and progress
shiori engine/engine/engine_save.js
Presentation and media
- Dialogue rendering
shiori engine/engine/engine_text.js - Character rendering
shiori engine/engine/engine_chars.js - Background rendering
shiori engine/engine/engine_bg.js - Audio playback
shiori engine/engine/engine_audio.js - Illustration configuration
shiori engine/config/illustration.js
Other components
- Story creator
- Player
Connections 25
- Story creator → DSL runtime bridge: authors scripts
- Shiori launcher → HTTP hosting: starts service
- HTTP hosting → Engine bootstrap: hosts engine
- Virtual asset files → SGD container: reads entries
Shiori/VfsEngineFiles.cs - DSL runtime bridge → Scene compiler: compiles scenes
ScriptingCore/Host/DslRuntime.cs - DSL runtime bridge → Macro catalog: loads macros
ScriptingCore/Host/DslRuntime.cs - DSL runtime bridge → Runtime JSON: emits nodes
ScriptingCore/Host/DslRuntime.cs - DSL runtime bridge → Command registry: creates registry
ScriptingCore/Host/DslRuntime.cs - DSL runtime bridge → Virtual asset files: uses file source
- Scene compiler → Scene parser: parses fields
ScriptingCore/Compile/Compiler.cs - Scene compiler → Command registry: looks up commands
ScriptingCore/Compile/Compiler.cs - Scene compiler → Condition validation: checks conditions
ScriptingCore/Compile/Compiler.cs - Macro catalog → Scene parser: parses macro source
- Command registry → DSL runtime bridge: provides snapshot
ScriptingCore/Host/DslRuntime.cs - Runtime JSON → DSL runtime bridge: returns JSON
ScriptingCore/Host/DslRuntime.cs - Player → Engine bootstrap: plays story
- Engine bootstrap → Scene execution: initializes runtime
- Scene execution → Story commands: dispatches commands
- Scene execution → Story variables: uses story state
- Scene execution → Save and progress: saves progress
- Story commands → Dialogue rendering: shows dialogue
- Story commands → Character rendering: updates characters
- Story commands → Background rendering: updates background
- Story commands → Audio playback: controls audio
- Character rendering → Illustration configuration: uses configuration