engage/generated/root/
akeventcallbackmsg.rs1#[cfg(feature = "root-akeventcallbackmsg-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::object::{IObject, Object};
9
10 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root/akeventcallbackmsg/AkEventCallbackMsg.md"))]
11 #[::unity::class(namespace = "", name = "AkEventCallbackMsg")]
12 #[parent(crate::system::object::Object)]
13 pub struct AkEventCallbackMsg {
14 #[offset(16)]
15 #[rename(name = "info")]
16 pub info: crate::root::akcallbackinfo::AkCallbackInfo,
17 #[offset(24)]
18 #[rename(name = "sender")]
19 pub sender: crate::unity_engine::gameobject::GameObject,
20 #[offset(32)]
21 #[rename(name = "type")]
22 pub r#type: crate::root::akcallbacktype::AkCallbackType,
23 }
24}
25
26#[cfg(feature = "root-akeventcallbackmsg-types")]
27pub use __types::*;
28
29#[cfg(feature = "root-akeventcallbackmsg")]
30pub trait IAkEventCallbackMsgMethods: IAkEventCallbackMsg {
31 #[doc = "`.ctor()` overload"]
32 fn ctor(self) -> () {
33 unsafe {
34 let __receiver = <AkEventCallbackMsg as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
35 ::unity::il2cpp_call!((::unity::module_base()+0x2f1a710usize)as*mut u8,();
36(AkEventCallbackMsg)__receiver)
37 }
38 }
39}
40
41#[cfg(feature = "root-akeventcallbackmsg")]
42impl<__T: IAkEventCallbackMsg> IAkEventCallbackMsgMethods for __T {}
43
44#[cfg(feature = "root-akeventcallbackmsg")]
45impl AkEventCallbackMsg {
46 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
47 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
48 }
49}
50
51#[cfg(feature = "root-akeventcallbackmsg")]
52impl AkEventCallbackMsg {
53 #[doc = "`.ctor()` — no args"]
54 pub fn new() -> Self {
55 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
56 panic!(
57 "{}
58::{}
59 failed to instantiate",
60 ::core::stringify!(AkEventCallbackMsg),
61 ::core::stringify!(new),
62 )
63 });
64 <Self as IAkEventCallbackMsgMethods>::ctor(this);
65 this
66 }
67}
68
69#[cfg(feature = "root-akeventcallbackmsg")]
70#[doc(hidden)]
71pub mod prelude {
72 pub use super::{AkEventCallbackMsg, IAkEventCallbackMsg, IAkEventCallbackMsgMethods};
73 pub use crate::system::object::IObject;
74 #[cfg(feature = "system-object")]
75 pub use crate::system::object::IObjectMethods;
76}