Skip to main content

il2cpp_bridge_rs/structs/
mod.rs

1//! Metadata, object, collection, and wrapper types exposed by the crate.
2//!
3//! The types in this module are the main building blocks once initialization
4//! has completed:
5//!
6//! - metadata wrappers such as [`Assembly`], [`Class`], [`Method`], and [`Field`]
7//! - runtime object wrappers such as [`Object`] and [`GameObject`]
8//! - Unity-oriented wrappers under [`components`]
9//! - collection and math helpers used by higher-level APIs
10//!
11//! Prefer starting from [`crate::api::cache`] to discover assemblies and classes,
12//! then move into these types for inspection, invocation, and object access.
13
14/// Collection types (List, Array, Dictionary, String)
15pub mod collections;
16/// Unity Component wrappers (GameObject, Transform, etc.)
17pub mod components;
18/// Core IL2CPP structures (Class, Method, Image, etc.)
19pub mod core;
20/// Mathematical structures (Vector3, Quaternion, etc.)
21pub mod math;
22/// Pointer utilities
23pub mod ptr;
24
25// Re-exports for easier access
26pub use collections::Il2cppString;
27pub use components::GameObject;
28pub use components::MonoBehaviour;
29pub use components::Transform;
30pub use core::{
31    Arg, Assembly, Class, Coroutine, Field, Image, Method, Object, Property, Type, ValueType,
32};
33pub use math::{Color, Matrix2x2, Matrix3x3, Matrix4x4, Quaternion, Vector2, Vector3, Vector4};
34pub use ptr::MutPtr;