havok_classes/lib.rs
1#![allow(missing_docs, non_camel_case_types, non_snake_case, unused)]
2// https://doc.rust-lang.org/stable/rustc/lints/listing/warn-by-default.html?highlight=abi#ambiguous-glob-reexports
3#![allow(ambiguous_glob_reexports)]
4#![allow(
5 clippy::collapsible_match,
6 clippy::enum_variant_names,
7 clippy::match_overlapping_arm,
8 clippy::redundant_static_lifetimes,
9 clippy::needless_lifetimes
10)]
11//! If the file name is the same as the struct name representing each generated class,
12//! a troublesome error will occur in namespace invocation, so a trailing `_` is added to avoid this.
13//!
14//! e.g. `hkClass` -> `struct hkClass` in `hkClass_.rs` file.
15//!
16//! # Note
17//! Note that the following enum and bitFlags have duplicate names.
18//!
19//! To use it correctly, you must import it from a module as follows.
20//! - e.g. `havok_classes::hkbEvaluateHandleModifier_::HandleChangeMode`
21//!
22//! `enum HandleChangeMode`(`TYPE_ENUM`)
23//! - `hkbEvaluateHandleModifier`
24//! - `hkbHandIkControlData`
25//!
26//! `enum Flags`(`TYPE_FLAGS`)
27//! - `hkbEventInfo`
28//! - `hkMeshVertexBuffer`
29//!
30//! `enum FlagValues`(`TYPE_FLAGS`)
31//! - `hkClass`
32//! - `hkClassMember`
33//!
34//! `enum Type`(`TYPE_ENUM`)
35//! - `hkClassMember`
36//! - `hkResourceBase`
37#[rustfmt::skip]
38mod generated;
39pub use generated::*;
40
41#[cfg(test)]
42mod tests {
43 use crate::BlendModeFunction;
44
45 #[test]
46 fn main() {
47 let class = crate::BGSGamebryoSequenceGenerator::default();
48 dbg!(BlendModeFunction::BMF_PERCENT);
49 dbg!(class);
50 }
51}