Skip to content
This repository was archived by the owner on Feb 6, 2026. It is now read-only.

Commit 68e664b

Browse files
committed
Update docs
1 parent 13abdb9 commit 68e664b

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

typetree_codegen.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,18 @@
33
- Supports nested types
44
- Supports inheritance
55
- Automatically resolves import order and dependencies
6+
- Generated classes support nested types, and will be initialized with the correct types even with nested dicts
67
78
NOTE:
89
- Cannot resolve namespace conflicts if the same class name is defined in multiple namespaces
910
- Missing type definitions are marked with # XXX: Fallback of {org_type} and typedefed as object
11+
- Circular inheritance is checked and raises RecursionError
12+
- The output order (imports, classes) are deterministic and lexicographically sorted
13+
- The output is emitted in lieu of the Namespace structure of the TypeTree dump, presented as Python modules in directories
14+
15+
USAGE:
16+
17+
python typetree_codegen.py <typetree_dump.json> <output_dir>
1018
"""
1119

1220
# From https://github.com/K0lb3/UnityPy/blob/master/generators/ClassesGenerator.py
@@ -288,7 +296,7 @@ def __main__():
288296
parser.add_argument(
289297
"infile",
290298
type=str,
291-
help="Input file. Dump with https://github.com/K0lb3/TypeTreeGenerator",
299+
help="Input TypeTree Dump in JSON format. Dump with https://github.com/K0lb3/TypeTreeGenerator",
292300
)
293301
parser.add_argument("outdir", type=str, help="Output directory")
294302
parser.add_argument("--log-level", default="INFO", help="Set logging level")

0 commit comments

Comments
 (0)