feat: type_fields in diff and tracker, joined with emulator property reads
The tracker lists each scope's original properties (constructor chain, or class fields up the chain for Piklib 6.1 and singletons such as SCENE) and where the emulator reads them: a CNVParser.createVariable case arm, an attribute read in the type's class or Variable.java, or other code. The switch-arm parser is shared with the @ statements. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
9d5a600d6b
commit
aee8f17417
@@ -40,6 +40,11 @@ class Snapshot:
|
||||
"""Events per script type, read through each type's own vftable (schema 6)."""
|
||||
return self.raw.get("type_events", [])
|
||||
|
||||
@property
|
||||
def type_fields(self) -> list[dict]:
|
||||
"""Properties per script type, read along its constructor chain (schema 7)."""
|
||||
return self.raw.get("type_fields", [])
|
||||
|
||||
@property
|
||||
def fields(self) -> list[dict]:
|
||||
return self.raw.get("fields", [])
|
||||
|
||||
Reference in New Issue
Block a user