34 lines
880 B
Rust
34 lines
880 B
Rust
//! Cursebreaker Unity Parser
|
|
//!
|
|
//! A high-performance Rust library for parsing Unity project files (.unity scenes,
|
|
//! .prefab prefabs, and .asset ScriptableObjects).
|
|
//!
|
|
//! # Example
|
|
//!
|
|
//! ```no_run
|
|
//! use cursebreaker_parser::UnityFile;
|
|
//!
|
|
//! let file = UnityFile::from_path("Scene.unity")?;
|
|
//! for doc in &file.documents {
|
|
//! println!("{}: {}", doc.class_name, doc.file_id);
|
|
//! }
|
|
//! # Ok::<(), cursebreaker_parser::Error>(())
|
|
//! ```
|
|
|
|
// Public modules
|
|
pub mod error;
|
|
pub mod model;
|
|
pub mod parser;
|
|
pub mod property;
|
|
pub mod types;
|
|
|
|
// Re-exports
|
|
pub use error::{Error, Result};
|
|
pub use model::{UnityDocument, UnityFile};
|
|
pub use parser::parse_unity_file;
|
|
pub use property::PropertyValue;
|
|
pub use types::{
|
|
Color, Component, ExternalRef, FileID, FileRef, GameObject, GenericComponent, LocalID,
|
|
Quaternion, RectTransform, Transform, Vector2, Vector3,
|
|
};
|