engage/generated/unity_engine/
nativeclassattribute.rs1#[cfg(feature = "unity_engine-nativeclassattribute-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/nativeclassattribute/NativeClassAttribute.md"))]
10 #[::unity::class(namespace = "UnityEngine", name = "NativeClassAttribute")]
11 pub struct NativeClassAttribute {}
12}
13
14#[cfg(feature = "unity_engine-nativeclassattribute-types")]
15pub use __types::*;
16
17#[cfg(feature = "unity_engine-nativeclassattribute")]
18pub trait INativeClassAttributeMethods: INativeClassAttribute {
19 #[doc = "`set_QualifiedNativeName(::unity::Il2CppString)` overload"]
20 fn set_qualified_native_name(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
21 unsafe {
22 let __receiver = <NativeClassAttribute as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
23 ::unity::il2cpp_call!((::unity::module_base()+0x3f37c50usize)as*mut u8,();
24(NativeClassAttribute)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
25 }
26 }
27 #[doc = "`set_Declaration(::unity::Il2CppString)` overload"]
28 fn set_declaration(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
29 unsafe {
30 let __receiver = <NativeClassAttribute as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
31 ::unity::il2cpp_call!((::unity::module_base()+0x3f37c60usize)as*mut u8,();
32(NativeClassAttribute)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
33 }
34 }
35 #[doc = "`.ctor(::unity::Il2CppString)` overload"]
36 fn ctor(self, qualified_cpp_name: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
37 unsafe {
38 let __receiver = <NativeClassAttribute as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
39 ::unity::il2cpp_call!((::unity::module_base()+0x3f37c70usize)as*mut u8,();
40(NativeClassAttribute)__receiver,(::unity::Il2CppString)::core::convert::Into::into(qualified_cpp_name))
41 }
42 }
43 #[doc = "`.ctor(::unity::Il2CppString, ::unity::Il2CppString)` overload"]
44 fn ctor_2(
45 self,
46 qualified_cpp_name: impl ::core::convert::Into<::unity::Il2CppString>,
47 declaration: impl ::core::convert::Into<::unity::Il2CppString>,
48 ) -> () {
49 unsafe {
50 let __receiver = <NativeClassAttribute as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
51 ::unity::il2cpp_call!((::unity::module_base()+0x3f37d00usize)as*mut u8,();
52(NativeClassAttribute)__receiver,(::unity::Il2CppString)::core::convert::Into::into(qualified_cpp_name),(::unity::Il2CppString)::core::convert::Into::into(declaration))
53 }
54 }
55}
56
57#[cfg(feature = "unity_engine-nativeclassattribute")]
58impl<__T: INativeClassAttribute> INativeClassAttributeMethods for __T {}
59
60#[cfg(feature = "unity_engine-nativeclassattribute")]
61impl NativeClassAttribute {
62 pub fn set_qualified_native_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
63 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
64 }
65
66 pub fn set_declaration_method_info() -> &'static ::unity::il2cpp::MethodInfo {
67 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
68 }
69
70 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
71 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
72 }
73
74 pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
75 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
76 }
77}
78
79#[cfg(feature = "unity_engine-nativeclassattribute")]
80impl NativeClassAttribute {
81 #[doc = "`.ctor(::unity::Il2CppString)` — overload selector"]
82 pub fn new(qualified_cpp_name: ::unity::Il2CppString) -> Self {
83 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
84 panic!(
85 "{}
86::{}
87 failed to instantiate",
88 ::core::stringify!(NativeClassAttribute),
89 ::core::stringify!(new),
90 )
91 });
92 <Self as INativeClassAttributeMethods>::ctor(this, qualified_cpp_name);
93 this
94 }
95
96 #[doc = "`.ctor(::unity::Il2CppString, ::unity::Il2CppString)` — overload selector"]
97 pub fn new_2(qualified_cpp_name: ::unity::Il2CppString, declaration: ::unity::Il2CppString) -> Self {
98 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
99 panic!(
100 "{}
101::{}
102 failed to instantiate",
103 ::core::stringify!(NativeClassAttribute),
104 ::core::stringify!(new_2),
105 )
106 });
107 <Self as INativeClassAttributeMethods>::ctor_2(this, qualified_cpp_name, declaration);
108 this
109 }
110}
111
112#[cfg(feature = "unity_engine-nativeclassattribute")]
113#[doc(hidden)]
114pub mod prelude {
115 pub use super::{INativeClassAttribute, INativeClassAttributeMethods, NativeClassAttribute};
116}