Skip to main content

engage/generated/unity_engine/scripting/api_updating/
movedfromattribute.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-scripting-api_updating-movedfromattribute-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/scripting/api_updating/movedfromattribute/MovedFromAttribute.md"))]
10    #[::unity::class(namespace = "UnityEngine.Scripting.APIUpdating", name = "MovedFromAttribute")]
11    pub struct MovedFromAttribute {
12        #[offset(16)]
13        #[rename(name = "data")]
14        pub data: crate::unity_engine::scripting::api_updating::movedfromattributedata::MovedFromAttributeData,
15    }
16}
17
18#[cfg(feature = "unity_engine-scripting-api_updating-movedfromattribute-types")]
19pub use __types::*;
20
21#[cfg(feature = "unity_engine-scripting-api_updating-movedfromattribute")]
22pub trait IMovedFromAttributeMethods: IMovedFromAttribute {
23    #[doc = "`.ctor(bool, ::unity::Il2CppString, ::unity::Il2CppString, ::unity::Il2CppString)` overload"]
24    fn ctor(
25        self,
26        auto_update_api: impl ::core::convert::Into<bool>,
27        source_namespace: impl ::core::convert::Into<::unity::Il2CppString>,
28        source_assembly: impl ::core::convert::Into<::unity::Il2CppString>,
29        source_class_name: impl ::core::convert::Into<::unity::Il2CppString>,
30    ) -> () {
31        unsafe {
32            let __receiver = <MovedFromAttribute as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
33            ::unity::il2cpp_call!((::unity::module_base()+0x32edb60usize)as*mut u8,();
34(MovedFromAttribute)__receiver,(bool)::core::convert::Into::into(auto_update_api),(::unity::Il2CppString)::core::convert::Into::into(source_namespace),(::unity::Il2CppString)::core::convert::Into::into(source_assembly),(::unity::Il2CppString)::core::convert::Into::into(source_class_name))
35        }
36    }
37    #[doc = "`.ctor(::unity::Il2CppString)` overload"]
38    fn ctor_2(self, source_namespace: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
39        unsafe {
40            let __receiver = <MovedFromAttribute as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
41            ::unity::il2cpp_call!((::unity::module_base()+0x32edcc0usize)as*mut u8,();
42(MovedFromAttribute)__receiver,(::unity::Il2CppString)::core::convert::Into::into(source_namespace))
43        }
44    }
45}
46
47#[cfg(feature = "unity_engine-scripting-api_updating-movedfromattribute")]
48impl<__T: IMovedFromAttribute> IMovedFromAttributeMethods for __T {}
49
50#[cfg(feature = "unity_engine-scripting-api_updating-movedfromattribute")]
51impl MovedFromAttribute {
52    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
53        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
54    }
55
56    pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
57        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
58    }
59}
60
61#[cfg(feature = "unity_engine-scripting-api_updating-movedfromattribute")]
62impl MovedFromAttribute {
63    #[doc = "`.ctor(bool, ::unity::Il2CppString, ::unity::Il2CppString, ::unity::Il2CppString)` — overload selector"]
64    pub fn new(
65        auto_update_api: bool,
66        source_namespace: ::unity::Il2CppString,
67        source_assembly: ::unity::Il2CppString,
68        source_class_name: ::unity::Il2CppString,
69    ) -> Self {
70        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
71            panic!(
72                "{}
73::{}
74 failed to instantiate",
75                ::core::stringify!(MovedFromAttribute),
76                ::core::stringify!(new),
77            )
78        });
79        <Self as IMovedFromAttributeMethods>::ctor(this, auto_update_api, source_namespace, source_assembly, source_class_name);
80        this
81    }
82
83    #[doc = "`.ctor(::unity::Il2CppString)` — overload selector"]
84    pub fn new_2(source_namespace: ::unity::Il2CppString) -> Self {
85        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
86            panic!(
87                "{}
88::{}
89 failed to instantiate",
90                ::core::stringify!(MovedFromAttribute),
91                ::core::stringify!(new_2),
92            )
93        });
94        <Self as IMovedFromAttributeMethods>::ctor_2(this, source_namespace);
95        this
96    }
97}
98
99#[cfg(feature = "unity_engine-scripting-api_updating-movedfromattribute")]
100#[doc(hidden)]
101pub mod prelude {
102    pub use super::{IMovedFromAttribute, IMovedFromAttributeMethods, MovedFromAttribute};
103}