Skip to main content

n3_lib/
lib.rs

1//! Renderer-independent readers and writers for Knight Online N3 assets.
2//!
3//! Storage APIs retain raw strings and float bit patterns instead of applying
4//! game-specific rendering transformations.
5//!
6//! ```
7//! use n3_lib::{parse_n3anim, write_n3anim};
8//! let bytes = [0_u8; 4];
9//! let asset = parse_n3anim(&bytes)?;
10//! assert_eq!(write_n3anim(&asset)?, bytes);
11//! # Ok::<(), n3_lib::binary::Error>(())
12//! ```
13
14pub mod binary;
15pub mod formats;
16pub mod geometry;
17pub mod images;
18pub mod records;
19pub mod table;
20pub mod textures;
21
22pub use formats::*;