Skip to main content

engage/generated/unity_engine/
exitguiexception.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-exitguiexception-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8
9    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/exitguiexception/ExitGUIException.md"))]
10    #[::unity::class(namespace = "UnityEngine", name = "ExitGUIException")]
11    pub struct ExitGUIException {}
12}
13
14#[cfg(feature = "unity_engine-exitguiexception-types")]
15pub use __types::*;
16
17#[cfg(feature = "unity_engine-exitguiexception")]
18pub trait IExitGUIExceptionMethods: IExitGUIException {
19    #[doc = "`.ctor(::unity::Il2CppString)` overload"]
20    fn ctor(self, message: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
21        unsafe {
22            let __receiver = <ExitGUIException as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
23            ::unity::il2cpp_call!((::unity::module_base()+0x3c39450usize)as*mut u8,();
24(ExitGUIException)__receiver,(::unity::Il2CppString)::core::convert::Into::into(message))
25        }
26    }
27}
28
29#[cfg(feature = "unity_engine-exitguiexception")]
30impl<__T: IExitGUIException> IExitGUIExceptionMethods for __T {}
31
32#[cfg(feature = "unity_engine-exitguiexception")]
33impl ExitGUIException {
34    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
35        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
36    }
37}
38
39#[cfg(feature = "unity_engine-exitguiexception")]
40impl ExitGUIException {
41    #[doc = "`.ctor(::unity::Il2CppString)` — overload selector"]
42    pub fn new(message: ::unity::Il2CppString) -> Self {
43        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
44            panic!(
45                "{}
46::{}
47 failed to instantiate",
48                ::core::stringify!(ExitGUIException),
49                ::core::stringify!(new),
50            )
51        });
52        <Self as IExitGUIExceptionMethods>::ctor(this, message);
53        this
54    }
55}
56
57#[cfg(feature = "unity_engine-exitguiexception")]
58#[doc(hidden)]
59pub mod prelude {
60    pub use super::{ExitGUIException, IExitGUIException, IExitGUIExceptionMethods};
61}