hao-il2cpp 0.0.7

Read Unity Il2Cpp metadata and generate .net proxy assemblies with hao
Documentation
//! 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 mod binary;
mod error;
pub mod game;
pub mod generate;
pub mod metadata;
#[cfg(feature = "reflect")]
pub mod reflect;

pub use binary::{Binary, LoadedImage};
pub use error::{Error, Result};
pub use game::{FieldView, Game, MethodView, ParameterView, TypeView};
pub use generate::{generate, GeneratedAssembly};
pub use metadata::Metadata;
pub use pewter::image::{AnyImage, ElfImage, PeImage};