engage/generated/unity_engine/scripting/
usedbynativecodeattribute.rs1#[cfg(feature = "unity_engine-scripting-usedbynativecodeattribute-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/usedbynativecodeattribute/UsedByNativeCodeAttribute.md"))]
10 #[::unity::class(namespace = "UnityEngine.Scripting", name = "UsedByNativeCodeAttribute")]
11 pub struct UsedByNativeCodeAttribute {}
12}
13
14#[cfg(feature = "unity_engine-scripting-usedbynativecodeattribute-types")]
15pub use __types::*;
16
17#[cfg(feature = "unity_engine-scripting-usedbynativecodeattribute")]
18pub trait IUsedByNativeCodeAttributeMethods: IUsedByNativeCodeAttribute {
19 #[doc = "`.ctor()` overload"]
20 fn ctor(self) -> () {
21 unsafe {
22 let __receiver =
23 <UsedByNativeCodeAttribute as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
24 ::unity::il2cpp_call!((::unity::module_base()+0x3f38730usize)as*mut u8,();
25(UsedByNativeCodeAttribute)__receiver)
26 }
27 }
28 #[doc = "`.ctor(::unity::Il2CppString)` overload"]
29 fn ctor_2(self, name: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
30 unsafe {
31 let __receiver =
32 <UsedByNativeCodeAttribute as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
33 ::unity::il2cpp_call!((::unity::module_base()+0x3f38740usize)as*mut u8,();
34(UsedByNativeCodeAttribute)__receiver,(::unity::Il2CppString)::core::convert::Into::into(name))
35 }
36 }
37 #[doc = "`set_Name(::unity::Il2CppString)` overload"]
38 fn set_name(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
39 unsafe {
40 let __receiver =
41 <UsedByNativeCodeAttribute as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
42 ::unity::il2cpp_call!((::unity::module_base()+0x3f38780usize)as*mut u8,();
43(UsedByNativeCodeAttribute)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
44 }
45 }
46}
47
48#[cfg(feature = "unity_engine-scripting-usedbynativecodeattribute")]
49impl<__T: IUsedByNativeCodeAttribute> IUsedByNativeCodeAttributeMethods for __T {}
50
51#[cfg(feature = "unity_engine-scripting-usedbynativecodeattribute")]
52impl UsedByNativeCodeAttribute {
53 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
54 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
55 }
56
57 pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
58 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
59 }
60
61 pub fn set_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
62 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
63 }
64}
65
66#[cfg(feature = "unity_engine-scripting-usedbynativecodeattribute")]
67impl UsedByNativeCodeAttribute {
68 #[doc = "`.ctor()` — no args"]
69 pub fn new() -> Self {
70 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
71 panic!(
72 "{}
73::{}
74 failed to instantiate",
75 ::core::stringify!(UsedByNativeCodeAttribute),
76 ::core::stringify!(new),
77 )
78 });
79 <Self as IUsedByNativeCodeAttributeMethods>::ctor(this);
80 this
81 }
82
83 #[doc = "`.ctor(::unity::Il2CppString)` — overload selector"]
84 pub fn new_2(name: ::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!(UsedByNativeCodeAttribute),
91 ::core::stringify!(new_2),
92 )
93 });
94 <Self as IUsedByNativeCodeAttributeMethods>::ctor_2(this, name);
95 this
96 }
97}
98
99#[cfg(feature = "unity_engine-scripting-usedbynativecodeattribute")]
100#[doc(hidden)]
101pub mod prelude {
102 pub use super::{IUsedByNativeCodeAttribute, IUsedByNativeCodeAttributeMethods, UsedByNativeCodeAttribute};
103}