1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//! Reads Unity Il2Cpp games, to generate .NET declaration assemblies with hao.
//!
//! Work in progress: metadata v29 with ELF game binaries.
//!
//! [`Game`] is the entry point. It finds a game's `global-metadata.dat` and
//! `GameAssembly`, and gives types, fields and methods by name with their types
//! resolved:
//!
//! ```no_run
//! use hao_il2cpp::Game;
//!
//! let game = Game::open("path/to/game")?;
//! let string = game.find_type("System.String").unwrap();
//! for method in string.methods() {
//! println!("{}", method); // `static string Concat(string str0, string str1)`
//! }
//! game.write_assemblies("out")?;
//! # Ok::<(), hao_il2cpp::Error>(())
//! ```
//!
//! Underneath, [`Metadata`] reads `global-metadata.dat`, [`Binary`] reads the
//! `Il2CppType` table from the game binary, and [`generate()`] builds the
//! declaration assemblies.
pub use ;
pub use ;
pub use ;
pub use ;
pub use Metadata;
pub use ;