engage/generated/root/
akgameobjpositionoffsetdata.rs1#[cfg(feature = "root-akgameobjpositionoffsetdata-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/akgameobjpositionoffsetdata/AkGameObjPositionOffsetData.md"))]
11 #[::unity::class(namespace = "", name = "AkGameObjPositionOffsetData")]
12 #[parent(crate::system::object::Object)]
13 pub struct AkGameObjPositionOffsetData {
14 #[offset(16)]
15 #[rename(name = "KeepMe")]
16 pub keep_me: bool,
17 #[offset(20)]
18 #[rename(name = "positionOffset")]
19 pub position_offset: crate::unity_engine::vector3::Vector3,
20 }
21}
22
23#[cfg(feature = "root-akgameobjpositionoffsetdata-types")]
24pub use __types::*;
25
26#[cfg(feature = "root-akgameobjpositionoffsetdata")]
27pub trait IAkGameObjPositionOffsetDataMethods: IAkGameObjPositionOffsetData {
28 #[doc = "`.ctor(bool)` overload"]
29 fn ctor(self, i_really_want_to_be_constructed: impl ::core::convert::Into<bool>) -> () {
30 unsafe {
31 let __receiver =
32 <AkGameObjPositionOffsetData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
33 ::unity::il2cpp_call!((::unity::module_base()+0x2f1f6d0usize)as*mut u8,();
34(AkGameObjPositionOffsetData)__receiver,(bool)::core::convert::Into::into(i_really_want_to_be_constructed))
35 }
36 }
37}
38
39#[cfg(feature = "root-akgameobjpositionoffsetdata")]
40impl<__T: IAkGameObjPositionOffsetData> IAkGameObjPositionOffsetDataMethods for __T {}
41
42#[cfg(feature = "root-akgameobjpositionoffsetdata")]
43impl AkGameObjPositionOffsetData {
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 = "root-akgameobjpositionoffsetdata")]
50impl AkGameObjPositionOffsetData {
51 #[doc = "`.ctor(bool)` — overload selector"]
52 pub fn new(i_really_want_to_be_constructed: bool) -> Self {
53 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
54 panic!(
55 "{}
56::{}
57 failed to instantiate",
58 ::core::stringify!(AkGameObjPositionOffsetData),
59 ::core::stringify!(new),
60 )
61 });
62 <Self as IAkGameObjPositionOffsetDataMethods>::ctor(this, i_really_want_to_be_constructed);
63 this
64 }
65}
66
67#[cfg(feature = "root-akgameobjpositionoffsetdata")]
68#[doc(hidden)]
69pub mod prelude {
70 pub use super::{AkGameObjPositionOffsetData, IAkGameObjPositionOffsetData, IAkGameObjPositionOffsetDataMethods};
71 pub use crate::system::object::IObject;
72 #[cfg(feature = "system-object")]
73 pub use crate::system::object::IObjectMethods;
74}