Expand description
S2S reference scanning and classification.
Scans inline scripts and standalone .s2s files for commands that reference
other files (dialogue, msgbox, button, addscript, extendscript,
def_extend, def_override), then classifies each referenced file for
downstream conversion.
Structs§
- S2sReference
- A single reference from one file to another.
Enums§
- S2sClass
- Classify a .s2s file based on how it’s referenced.
- S2sRef
Type - How another file references/loads a given .s2s file.
Functions§
- build_
reference_ map - Build a reference map: for each .s2s file, what commands reference it and how.
- classify_
s2s - resolve_
missing_ script_ refs - After building the reference map, resolve references whose target files
have a different extension than expected (e.g., referenced as
.s2sinmsgbox/buttoncalls but stored as.txton disk). - scan_
references - Scan script content for commands that load other .s2s files, and record the references found.
Type Aliases§
- S2sRef
Map - Map from .s2s file path → how it’s referenced (file-level).
- S2sSection
Map - Section-level reference map: file path → section name → ref types for that section. Only populated for files whose references include a section name.