Skip to main content

engage/generated/unity_engine/
excludefromobjectfactoryattribute.rs

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