Skip to content

Commit bd6a9ea

Browse files
committed
Version 0.0.9
Update README Nuke DS_Store
1 parent 6579de2 commit bd6a9ea

File tree

3 files changed

+59
-1
lines changed

3 files changed

+59
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ __pycache__/
44
*.egg-info
55
dump
66
generated/
7+
.DS_Store

README.md

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,63 @@ Used in
1010
- https://github.com/mos9527/sssekai_blender_io/
1111
- Used for TransportDefine in https://github.com/mos9527/sssekai_blender_io/tree/master/scripts/rla_transport_defines/generated
1212
## Usage
13+
### Installation
14+
```bash
15+
pip install UnityPyTypetreeCodegen
16+
```
17+
### Generating code
18+
- You can generate code from a TypeTree JSON dump generated with https://github.com/K0lb3/TypeTreeGenerator
19+
```bash
20+
UnityPyTypetreeCodegen --json "path_to_typetree_json_dump" --output "generated_moudle_path"
21+
```
22+
- Or dump the TypeTree using https://github.com/UnityPy-Org/TypeTreeGeneratorAPI automatically (WIP)
23+
```bash
24+
UnityPyTypetreeCodegen --files "path_to_Assembly-CSharp_and_other_mono_dlls" --output "generated_moudle_path"
25+
```
26+
- The emitted module will be structured like this
27+
```
28+
generated
29+
├── __init__.py
30+
└── Live2D
31+
└── Cubism
32+
├── Core
33+
│   ├── __init__.py
34+
│   └── Unmanaged
35+
│   └── __init__.py
36+
├── Framework
37+
│   ├── __init__.py
38+
│   ├── Expression
39+
│   │   └── __init__.py
40+
│   ├── HarmonicMotion
41+
│   │   └── __init__.py
42+
│   ├── Json
43+
│   │   └── __init__.py
44+
│   ├── LookAt
45+
│   │   └── __init__.py
46+
│   ├── Motion
47+
│   │   └── __init__.py
48+
│   ├── MotionFade
49+
│   │   └── __init__.py
50+
│   ├── MouthMovement
51+
│   │   └── __init__.py
52+
│   ├── Physics
53+
│   │   └── __init__.py
54+
│   ├── Pose
55+
│   │   └── __init__.py
56+
│   ├── Raycasting
57+
│   │   └── __init__.py
58+
│   ├── Tasking
59+
│   │   └── __init__.py
60+
│   └── UserData
61+
│   └── __init__.py
62+
└── Rendering
63+
├── __init__.py
64+
└── Masking
65+
└── __init__.py
66+
67+
20 directories, 18 files
68+
```
69+
### Using the generated module
1370
Example usage in `rla_transport_defines`
1471
```python
1572
env = UnityPy.load(...)

UnityPyTypetreeCodegen/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = (0, 0, 8)
1+
__version__ = (0, 0, 9)

0 commit comments

Comments
 (0)