Skip to main content

engage/generated/app/
breakdownenemyinspector.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-breakdownenemyinspector-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::{
10            mapinspector::{IMapInspector, MapInspector},
11            pokeinspector::{IPokeInspector, PokeInspector},
12            scriptutil::{IScriptUtil, ScriptUtil},
13        },
14        system::object::{IObject, Object},
15    };
16
17    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/breakdownenemyinspector/BreakdownEnemyInspector.md"))]
18    #[::unity::class(namespace = "App", name = "BreakdownEnemyInspector")]
19    #[parent(crate::app::pokeinspector::PokeInspector)]
20    pub struct BreakdownEnemyInspector {}
21}
22
23#[cfg(feature = "app-breakdownenemyinspector-types")]
24pub use __types::*;
25
26#[cfg(feature = "app-breakdownenemyinspector")]
27pub trait IBreakdownEnemyInspectorMethods: IBreakdownEnemyInspector {
28    #[doc = "`.ctor(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)` overload"]
29    fn ctor(self, args: impl ::core::convert::Into<::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>>) -> () {
30        unsafe {
31            let __receiver =
32                <BreakdownEnemyInspector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
33            ::unity::il2cpp_call!((::unity::module_base()+0x298bf60usize)as*mut u8,();
34(BreakdownEnemyInspector)__receiver,(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)::core::convert::Into::into(args))
35        }
36    }
37    #[doc = "`GetLabel()` overload"]
38    fn get_label(self) -> ::unity::Il2CppString {
39        unsafe {
40            let __receiver =
41                <BreakdownEnemyInspector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
42            {
43                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
44                let __vi = *__vt.get(36usize).unwrap_or_else(|| {
45                    panic!(
46                        "unity: virtual slot {}
47 out of range (vtable len {}
48) on the runtime class behind {}
49 (method `{}
50`)",
51                        36usize,
52                        __vt.len(),
53                        <BreakdownEnemyInspector as ::unity::ClassIdentity>::NAME,
54                        "GetLabel",
55                    )
56                });
57                let __inner: extern "C" fn(BreakdownEnemyInspector, ::unity::OptionalMethod) -> ::unity::Il2CppString =
58                    ::core::mem::transmute(__vi.method_ptr);
59                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
60                __inner(__receiver, __mi)
61            }
62        }
63    }
64    #[doc = "`GetRange()` overload"]
65    fn get_range(self) -> i32 {
66        unsafe {
67            let __receiver =
68                <BreakdownEnemyInspector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
69            {
70                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
71                let __vi = *__vt.get(37usize).unwrap_or_else(|| {
72                    panic!(
73                        "unity: virtual slot {}
74 out of range (vtable len {}
75) on the runtime class behind {}
76 (method `{}
77`)",
78                        37usize,
79                        __vt.len(),
80                        <BreakdownEnemyInspector as ::unity::ClassIdentity>::NAME,
81                        "GetRange",
82                    )
83                });
84                let __inner: extern "C" fn(BreakdownEnemyInspector, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__vi.method_ptr);
85                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
86                __inner(__receiver, __mi)
87            }
88        }
89    }
90    #[doc = "`get_Color()` overload"]
91    fn get_color(self) -> crate::unity_engine::color::Color {
92        unsafe {
93            let __receiver =
94                <BreakdownEnemyInspector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
95            {
96                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
97                let __vi = *__vt.get(11usize).unwrap_or_else(|| {
98                    panic!(
99                        "unity: virtual slot {}
100 out of range (vtable len {}
101) on the runtime class behind {}
102 (method `{}
103`)",
104                        11usize,
105                        __vt.len(),
106                        <BreakdownEnemyInspector as ::unity::ClassIdentity>::NAME,
107                        "get_Color",
108                    )
109                });
110                let __inner: extern "C" fn(BreakdownEnemyInspector, ::unity::OptionalMethod) -> crate::unity_engine::color::Color =
111                    ::core::mem::transmute(__vi.method_ptr);
112                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
113                __inner(__receiver, __mi)
114            }
115        }
116    }
117}
118
119#[cfg(feature = "app-breakdownenemyinspector")]
120impl<__T: IBreakdownEnemyInspector> IBreakdownEnemyInspectorMethods for __T {}
121
122#[cfg(feature = "app-breakdownenemyinspector")]
123impl BreakdownEnemyInspector {
124    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
125        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
126    }
127
128    pub fn get_label_method_info() -> &'static ::unity::il2cpp::MethodInfo {
129        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
130    }
131
132    pub fn get_range_method_info() -> &'static ::unity::il2cpp::MethodInfo {
133        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
134    }
135
136    pub fn get_color_method_info() -> &'static ::unity::il2cpp::MethodInfo {
137        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
138    }
139}
140
141#[cfg(feature = "app-breakdownenemyinspector")]
142impl BreakdownEnemyInspector {
143    #[doc = "Direct (non-virtual) call to `BreakdownEnemyInspector`'s own `GetLabel`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
144    pub unsafe fn get_label(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
145        let __mi = Self::get_label_method_info();
146        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
147        __inner(this.into(), ::core::option::Option::None)
148    }
149
150    #[doc = "Direct (non-virtual) call to `BreakdownEnemyInspector`'s own `GetRange`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
151    pub unsafe fn get_range(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
152        let __mi = Self::get_range_method_info();
153        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
154        __inner(this.into(), ::core::option::Option::None)
155    }
156
157    #[doc = "Direct (non-virtual) call to `BreakdownEnemyInspector`'s own `get_Color`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
158    pub unsafe fn get_color(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::unity_engine::color::Color {
159        let __mi = Self::get_color_method_info();
160        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::unity_engine::color::Color =
161            ::core::mem::transmute(__mi.method_ptr);
162        __inner(this.into(), ::core::option::Option::None)
163    }
164}
165
166#[cfg(feature = "app-breakdownenemyinspector")]
167impl BreakdownEnemyInspector {
168    #[doc = "`.ctor(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)` — overload selector"]
169    pub fn new(args: ::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>) -> Self {
170        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
171            panic!(
172                "{}
173::{}
174 failed to instantiate",
175                ::core::stringify!(BreakdownEnemyInspector),
176                ::core::stringify!(new),
177            )
178        });
179        <Self as IBreakdownEnemyInspectorMethods>::ctor(this, args);
180        this
181    }
182}
183
184#[cfg(feature = "app-breakdownenemyinspector")]
185#[doc(hidden)]
186pub mod prelude {
187    pub use super::{BreakdownEnemyInspector, IBreakdownEnemyInspector, IBreakdownEnemyInspectorMethods};
188    #[cfg(feature = "app-mapinspector")]
189    pub use crate::app::mapinspector::IMapInspectorMethods;
190    #[cfg(feature = "app-pokeinspector")]
191    pub use crate::app::pokeinspector::IPokeInspectorMethods;
192    #[cfg(feature = "app-scriptutil")]
193    pub use crate::app::scriptutil::IScriptUtilMethods;
194    #[cfg(feature = "system-object")]
195    pub use crate::system::object::IObjectMethods;
196    pub use crate::{
197        app::{mapinspector::IMapInspector, pokeinspector::IPokeInspector, scriptutil::IScriptUtil},
198        system::object::IObject,
199    };
200}