Skip to main content

engage/generated/combat/
characterlod.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "combat-characterlod-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::object::{IObject, Object};
9
10    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/combat/characterlod/CharacterLod.md"))]
11    #[::unity::class(namespace = "Combat", name = "CharacterLod")]
12    #[parent(crate::system::object::Object)]
13    pub struct CharacterLod {
14        #[static_field]
15        #[rename(name = "LOD_VALUES")]
16        pub lod_values: ::unity::Array<f32>,
17        #[static_field]
18        #[rename(name = "MAX_LOD")]
19        pub max_lod: i32,
20    }
21}
22
23#[cfg(feature = "combat-characterlod-types")]
24pub use __types::*;
25
26#[cfg(feature = "combat-characterlod")]
27impl CharacterLod {
28    #[doc = "`Activate(::unity::Array<crate::unity_engine::transform::Transform>)` overload"]
29    pub fn activate(objects: impl ::core::convert::Into<::unity::Array<crate::unity_engine::transform::Transform>>) -> () {
30        unsafe {
31            ::unity::il2cpp_call!((::unity::module_base()+0x27eb830usize)as*mut u8,();
32(::unity::Array<crate::unity_engine::transform::Transform>)::core::convert::Into::into(objects))
33        }
34    }
35
36    #[doc = "`HasLod(::unity::Array<crate::unity_engine::renderer::Renderer>)` overload"]
37    pub fn has_lod(renderers: impl ::core::convert::Into<::unity::Array<crate::unity_engine::renderer::Renderer>>) -> bool {
38        unsafe {
39            ::unity::il2cpp_call!((::unity::module_base()+0x27eb980usize)as*mut u8,bool;
40(::unity::Array<crate::unity_engine::renderer::Renderer>)::core::convert::Into::into(renderers))
41        }
42    }
43
44    #[doc = "`IsShadowMesh(crate::unity_engine::renderer::Renderer)` overload"]
45    pub fn is_shadow_mesh(r: impl ::core::convert::Into<crate::unity_engine::renderer::Renderer>) -> bool {
46        unsafe {
47            ::unity::il2cpp_call!((::unity::module_base()+0x27eba40usize)as*mut u8,bool;
48(crate::unity_engine::renderer::Renderer)::core::convert::Into::into(r))
49        }
50    }
51
52    #[doc = "`GetBaseName(::unity::Il2CppString)` overload"]
53    pub fn get_base_name(name: impl ::core::convert::Into<::unity::Il2CppString>) -> ::unity::Il2CppString {
54        unsafe {
55            ::unity::il2cpp_call!((::unity::module_base()+0x27ebba0usize)as*mut u8, ::unity::Il2CppString;
56(::unity::Il2CppString)::core::convert::Into::into(name))
57        }
58    }
59
60    #[doc = "`GetRenderersByLod(::unity::Il2CppString, ::unity::Array<crate::unity_engine::renderer::Renderer>)` overload"]
61    pub fn get_renderers_by_lod(
62        key: impl ::core::convert::Into<::unity::Il2CppString>,
63        renderers: impl ::core::convert::Into<::unity::Array<crate::unity_engine::renderer::Renderer>>,
64    ) -> ::unity::Array<crate::unity_engine::renderer::Renderer> {
65        unsafe {
66            ::unity::il2cpp_call!((::unity::module_base()+0x27ebcb0usize)as*mut u8, ::unity::Array<crate::unity_engine::renderer::Renderer> ;
67(::unity::Il2CppString)::core::convert::Into::into(key),(::unity::Array<crate::unity_engine::renderer::Renderer>)::core::convert::Into::into(renderers))
68        }
69    }
70
71    #[doc = "`CreateLods(::unity::Array<crate::unity_engine::renderer::Renderer>)` overload"]
72    pub fn create_lods(
73        renderers: impl ::core::convert::Into<::unity::Array<crate::unity_engine::renderer::Renderer>>,
74    ) -> ::unity::Array<crate::unity_engine::lod::LOD> {
75        unsafe {
76            ::unity::il2cpp_call!((::unity::module_base()+0x27ec020usize)as*mut u8, ::unity::Array<crate::unity_engine::lod::LOD> ;
77(::unity::Array<crate::unity_engine::renderer::Renderer>)::core::convert::Into::into(renderers))
78        }
79    }
80
81    #[doc = "`Setup(crate::combat::characterasset::CharacterAsset)` overload"]
82    pub fn setup(asset: impl ::core::convert::Into<crate::combat::characterasset::CharacterAsset>) -> bool {
83        unsafe {
84            ::unity::il2cpp_call!((::unity::module_base()+0x27ec810usize)as*mut u8,bool;
85(crate::combat::characterasset::CharacterAsset)::core::convert::Into::into(asset))
86        }
87    }
88
89    #[doc = "`.cctor()` overload"]
90    pub fn cctor() -> () {
91        unsafe {
92            ::unity::il2cpp_call!((::unity::module_base()+0x27eca50usize)as*mut u8,();
93            )
94        }
95    }
96}
97
98#[cfg(feature = "combat-characterlod")]
99pub trait ICharacterLodMethods: ICharacterLod {
100    #[doc = "`.ctor()` overload"]
101    fn ctor(self) -> () {
102        unsafe {
103            let __receiver = <CharacterLod as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
104            ::unity::il2cpp_call!((::unity::module_base()+0x27eca40usize)as*mut u8,();
105(CharacterLod)__receiver)
106        }
107    }
108}
109
110#[cfg(feature = "combat-characterlod")]
111impl<__T: ICharacterLod> ICharacterLodMethods for __T {}
112
113#[cfg(feature = "combat-characterlod")]
114impl CharacterLod {
115    pub fn activate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
116        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
117    }
118
119    pub fn has_lod_method_info() -> &'static ::unity::il2cpp::MethodInfo {
120        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
121    }
122
123    pub fn is_shadow_mesh_method_info() -> &'static ::unity::il2cpp::MethodInfo {
124        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
125    }
126
127    pub fn get_base_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
128        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
129    }
130
131    pub fn get_renderers_by_lod_method_info() -> &'static ::unity::il2cpp::MethodInfo {
132        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
133    }
134
135    pub fn create_lods_method_info() -> &'static ::unity::il2cpp::MethodInfo {
136        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
137    }
138
139    pub fn setup_method_info() -> &'static ::unity::il2cpp::MethodInfo {
140        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
141    }
142
143    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
144        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
145    }
146
147    pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
148        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
149    }
150}
151
152#[cfg(feature = "combat-characterlod")]
153impl CharacterLod {
154    #[doc = "`.ctor()` — no args"]
155    pub fn new() -> Self {
156        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
157            panic!(
158                "{}
159::{}
160 failed to instantiate",
161                ::core::stringify!(CharacterLod),
162                ::core::stringify!(new),
163            )
164        });
165        <Self as ICharacterLodMethods>::ctor(this);
166        this
167    }
168}
169
170#[cfg(feature = "combat-characterlod")]
171#[doc(hidden)]
172pub mod prelude {
173    pub use super::{CharacterLod, ICharacterLod, ICharacterLodMethods};
174    pub use crate::system::object::IObject;
175    #[cfg(feature = "system-object")]
176    pub use crate::system::object::IObjectMethods;
177}