engage/generated/unity_engine/
runtimeinitializeonloadmethodattribute.rs1#[cfg(feature = "unity_engine-runtimeinitializeonloadmethodattribute-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 system::object::{IObject, Object},
10 unity_engine::scripting::preserveattribute::{IPreserveAttribute, PreserveAttribute},
11 };
12
13 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/runtimeinitializeonloadmethodattribute/RuntimeInitializeOnLoadMethodAttribute.md"))]
14 #[::unity::class(namespace = "UnityEngine", name = "RuntimeInitializeOnLoadMethodAttribute")]
15 #[parent(crate::unity_engine::scripting::preserveattribute::PreserveAttribute)]
16 pub struct RuntimeInitializeOnLoadMethodAttribute {
17 #[offset(16)]
18 #[rename(name = "m_LoadType")]
19 pub m_load_type: crate::unity_engine::runtimeinitializeloadtype::RuntimeInitializeLoadType,
20 }
21}
22
23#[cfg(feature = "unity_engine-runtimeinitializeonloadmethodattribute-types")]
24pub use __types::*;
25
26#[cfg(feature = "unity_engine-runtimeinitializeonloadmethodattribute")]
27pub trait IRuntimeInitializeOnLoadMethodAttributeMethods: IRuntimeInitializeOnLoadMethodAttribute {
28 #[doc = "`.ctor()` overload"]
29 fn ctor(self) -> () {
30 unsafe {
31 let __receiver = <RuntimeInitializeOnLoadMethodAttribute as ::unity::FromIlInstance>::from_il_instance(
32 <Self as ::unity::SystemObject>::as_instance(self),
33 );
34 ::unity::il2cpp_call!((::unity::module_base()+0x2f898f0usize)as*mut u8,();
35(RuntimeInitializeOnLoadMethodAttribute)__receiver)
36 }
37 }
38 #[doc = "`.ctor(crate::unity_engine::runtimeinitializeloadtype::RuntimeInitializeLoadType)` overload"]
39 fn ctor_2(self, load_type: impl ::core::convert::Into<crate::unity_engine::runtimeinitializeloadtype::RuntimeInitializeLoadType>) -> () {
40 unsafe {
41 let __receiver = <RuntimeInitializeOnLoadMethodAttribute as ::unity::FromIlInstance>::from_il_instance(
42 <Self as ::unity::SystemObject>::as_instance(self),
43 );
44 ::unity::il2cpp_call!((::unity::module_base()+0x2f89930usize)as*mut u8,();
45(RuntimeInitializeOnLoadMethodAttribute)__receiver,(crate::unity_engine::runtimeinitializeloadtype::RuntimeInitializeLoadType)::core::convert::Into::into(load_type))
46 }
47 }
48 #[doc = "`set_loadType(crate::unity_engine::runtimeinitializeloadtype::RuntimeInitializeLoadType)` overload"]
49 fn set_load_type(self, value: impl ::core::convert::Into<crate::unity_engine::runtimeinitializeloadtype::RuntimeInitializeLoadType>) -> () {
50 unsafe {
51 let __receiver = <RuntimeInitializeOnLoadMethodAttribute as ::unity::FromIlInstance>::from_il_instance(
52 <Self as ::unity::SystemObject>::as_instance(self),
53 );
54 ::unity::il2cpp_call!((::unity::module_base()+0x2f89920usize)as*mut u8,();
55(RuntimeInitializeOnLoadMethodAttribute)__receiver,(crate::unity_engine::runtimeinitializeloadtype::RuntimeInitializeLoadType)::core::convert::Into::into(value))
56 }
57 }
58}
59
60#[cfg(feature = "unity_engine-runtimeinitializeonloadmethodattribute")]
61impl<__T: IRuntimeInitializeOnLoadMethodAttribute> IRuntimeInitializeOnLoadMethodAttributeMethods for __T {}
62
63#[cfg(feature = "unity_engine-runtimeinitializeonloadmethodattribute")]
64impl RuntimeInitializeOnLoadMethodAttribute {
65 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
66 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
67 }
68
69 pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
70 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
71 }
72
73 pub fn set_load_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
74 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
75 }
76}
77
78#[cfg(feature = "unity_engine-runtimeinitializeonloadmethodattribute")]
79impl RuntimeInitializeOnLoadMethodAttribute {
80 #[doc = "`.ctor()` — no args"]
81 pub fn new() -> Self {
82 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
83 panic!(
84 "{}
85::{}
86 failed to instantiate",
87 ::core::stringify!(RuntimeInitializeOnLoadMethodAttribute),
88 ::core::stringify!(new),
89 )
90 });
91 <Self as IRuntimeInitializeOnLoadMethodAttributeMethods>::ctor(this);
92 this
93 }
94
95 #[doc = "`.ctor(crate::unity_engine::runtimeinitializeloadtype::RuntimeInitializeLoadType)` — overload selector"]
96 pub fn new_2(load_type: crate::unity_engine::runtimeinitializeloadtype::RuntimeInitializeLoadType) -> Self {
97 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
98 panic!(
99 "{}
100::{}
101 failed to instantiate",
102 ::core::stringify!(RuntimeInitializeOnLoadMethodAttribute),
103 ::core::stringify!(new_2),
104 )
105 });
106 <Self as IRuntimeInitializeOnLoadMethodAttributeMethods>::ctor_2(this, load_type);
107 this
108 }
109}
110
111#[cfg(feature = "unity_engine-runtimeinitializeonloadmethodattribute")]
112#[doc(hidden)]
113pub mod prelude {
114 pub use super::{
115 IRuntimeInitializeOnLoadMethodAttribute, IRuntimeInitializeOnLoadMethodAttributeMethods, RuntimeInitializeOnLoadMethodAttribute,
116 };
117 #[cfg(feature = "system-object")]
118 pub use crate::system::object::IObjectMethods;
119 #[cfg(feature = "unity_engine-scripting-preserveattribute")]
120 pub use crate::unity_engine::scripting::preserveattribute::IPreserveAttributeMethods;
121 pub use crate::{system::object::IObject, unity_engine::scripting::preserveattribute::IPreserveAttribute};
122}