engage/generated/unity_engine/
helpurlattribute.rs1#[cfg(feature = "unity_engine-helpurlattribute-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/helpurlattribute/HelpURLAttribute.md"))]
10 #[::unity::class(namespace = "UnityEngine", name = "HelpURLAttribute")]
11 pub struct HelpURLAttribute {
12 #[offset(16)]
13 #[rename(name = "m_Url")]
14 pub m_url: ::unity::Il2CppString,
15 #[offset(24)]
16 #[rename(name = "m_Dispatcher")]
17 pub m_dispatcher: bool,
18 #[offset(32)]
19 #[rename(name = "m_DispatchingFieldName")]
20 pub m_dispatching_field_name: ::unity::Il2CppString,
21 }
22}
23
24#[cfg(feature = "unity_engine-helpurlattribute-types")]
25pub use __types::*;
26
27#[cfg(feature = "unity_engine-helpurlattribute")]
28pub trait IHelpURLAttributeMethods: IHelpURLAttribute {
29 #[doc = "`.ctor(::unity::Il2CppString)` overload"]
30 fn ctor(self, url: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
31 unsafe {
32 let __receiver = <HelpURLAttribute as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
33 ::unity::il2cpp_call!((::unity::module_base()+0x2c514c0usize)as*mut u8,();
34(HelpURLAttribute)__receiver,(::unity::Il2CppString)::core::convert::Into::into(url))
35 }
36 }
37}
38
39#[cfg(feature = "unity_engine-helpurlattribute")]
40impl<__T: IHelpURLAttribute> IHelpURLAttributeMethods for __T {}
41
42#[cfg(feature = "unity_engine-helpurlattribute")]
43impl HelpURLAttribute {
44 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
45 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
46 }
47}
48
49#[cfg(feature = "unity_engine-helpurlattribute")]
50impl HelpURLAttribute {
51 #[doc = "`.ctor(::unity::Il2CppString)` — overload selector"]
52 pub fn new(url: ::unity::Il2CppString) -> Self {
53 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
54 panic!(
55 "{}
56::{}
57 failed to instantiate",
58 ::core::stringify!(HelpURLAttribute),
59 ::core::stringify!(new),
60 )
61 });
62 <Self as IHelpURLAttributeMethods>::ctor(this, url);
63 this
64 }
65}
66
67#[cfg(feature = "unity_engine-helpurlattribute")]
68#[doc(hidden)]
69pub mod prelude {
70 pub use super::{HelpURLAttribute, IHelpURLAttribute, IHelpURLAttributeMethods};
71}