engage/generated/combat/
quantizer.rs1#[cfg(feature = "combat-quantizer-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::{
9 object::{IObject, Object},
10 r#enum::{Enum, IEnum},
11 valuetype::{IValueType, ValueType},
12 };
13
14 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/combat/quantizer/Quantizer_MajorAxis.md"))]
15 #[repr(C)]
16 #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
17 pub struct Quantizer_MajorAxis {
18 pub value: i32,
19 }
20 impl ::unity::ClassIdentity for Quantizer_MajorAxis {
21 const NAME: &'static str = "Quantizer.MajorAxis";
22 const NAMESPACE: &'static str = "Combat";
23
24 fn class() -> ::unity::Class {
25 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
26 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
27 }
28 }
29 impl ::unity::IlType for Quantizer_MajorAxis {
30 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
31 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
32 }
33 }
34 impl Quantizer_MajorAxis {
35 pub fn x() -> Self {
36 Self { value: 0 }
37 }
38
39 pub fn y() -> Self {
40 Self { value: 1 }
41 }
42
43 pub fn z() -> Self {
44 Self { value: 2 }
45 }
46
47 pub fn mask() -> Self {
48 Self { value: 3 }
49 }
50 }
51
52 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/combat/quantizer/Quantizer.md"))]
53 #[::unity::class(namespace = "Combat", name = "Quantizer")]
54 #[parent(crate::system::object::Object)]
55 pub struct Quantizer {}
56}
57
58#[cfg(feature = "combat-quantizer-types")]
59pub use __types::*;
60
61#[cfg(feature = "combat-quantizer")]
62impl Quantizer {
63 #[doc = "`FItoVec3(f32, i32)` overload"]
64 pub fn f_ito_vec3(f: impl ::core::convert::Into<f32>, i: impl ::core::convert::Into<i32>) -> crate::unity_engine::vector3::Vector3 {
65 unsafe {
66 ::unity::il2cpp_call!((::unity::module_base()+0x2372090usize)as*mut u8,crate::unity_engine::vector3::Vector3;
67(f32)::core::convert::Into::into(f),(i32)::core::convert::Into::into(i))
68 }
69 }
70
71 #[doc = "`FXZtoI(crate::combat::fxz::FXZ)` overload"]
72 pub fn fx_zto_i(xz: impl ::core::convert::Into<crate::combat::fxz::FXZ>) -> i32 {
73 unsafe {
74 ::unity::il2cpp_call!((::unity::module_base()+0x23720f0usize)as*mut u8,i32;
75(crate::combat::fxz::FXZ)::core::convert::Into::into(xz))
76 }
77 }
78
79 #[doc = "`ItoFXZ(i32)` overload"]
80 pub fn ito_fxz(i: impl ::core::convert::Into<i32>) -> crate::combat::fxz::FXZ {
81 unsafe {
82 ::unity::il2cpp_call!((::unity::module_base()+0x2372140usize)as*mut u8,crate::combat::fxz::FXZ;
83(i32)::core::convert::Into::into(i))
84 }
85 }
86}
87
88#[cfg(feature = "combat-quantizer")]
89impl Quantizer {
90 pub fn f_ito_vec3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
91 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
92 }
93
94 pub fn fx_zto_i_method_info() -> &'static ::unity::il2cpp::MethodInfo {
95 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
96 }
97
98 pub fn ito_fxz_method_info() -> &'static ::unity::il2cpp::MethodInfo {
99 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
100 }
101}
102
103#[cfg(feature = "combat-quantizer")]
104#[doc(hidden)]
105pub mod prelude {
106 pub use super::{IQuantizer, Quantizer, Quantizer_MajorAxis};
107 #[cfg(feature = "system-object")]
108 pub use crate::system::object::IObjectMethods;
109 #[cfg(feature = "system-enum")]
110 pub use crate::system::r#enum::IEnumMethods;
111 #[cfg(feature = "system-valuetype")]
112 pub use crate::system::valuetype::IValueTypeMethods;
113 pub use crate::system::{object::IObject, r#enum::IEnum, valuetype::IValueType};
114}