Skip to main content

engage/generated/app/
randomseed.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-randomseed-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::{
9        object::{IObject, Object},
10        valuetype::{IValueType, ValueType},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/randomseed/RandomSeed_CastType_I2F.md"))]
14    #[repr(C)]
15    #[derive(::core::clone::Clone, ::core::marker::Copy)]
16    pub struct RandomSeed_CastType_I2F {
17        pub ivalue: u32,
18        pub fvalue: f32,
19    }
20    impl ::unity::ClassIdentity for RandomSeed_CastType_I2F {
21        const NAME: &'static str = "RandomSeed.CastType_I2F";
22        const NAMESPACE: &'static str = "App";
23
24        fn class() -> ::unity::Class {
25            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
26            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
27        }
28    }
29    impl ::unity::IlType for RandomSeed_CastType_I2F {
30        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
31            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
32        }
33    }
34
35    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/randomseed/RandomSeed.md"))]
36    #[repr(C)]
37    #[derive(::core::clone::Clone, ::core::marker::Copy)]
38    pub struct RandomSeed {
39        pub seed1: u32,
40        pub seed2: u32,
41        pub seed3: u32,
42        pub seed4: u32,
43    }
44    impl ::unity::ClassIdentity for RandomSeed {
45        const NAME: &'static str = "RandomSeed";
46        const NAMESPACE: &'static str = "App";
47
48        fn class() -> ::unity::Class {
49            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
50            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
51        }
52    }
53    impl ::unity::IlType for RandomSeed {
54        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
55            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
56        }
57    }
58    impl RandomSeed {
59        #[inline]
60        pub fn version() -> i32 {
61            static OFFSET: ::std::sync::OnceLock<usize> = ::std::sync::OnceLock::new();
62            let __offset = ::unity::cached_field_offset_static::<Self>(&OFFSET, "Version");
63            ::unity::static_field_get_value_at_offset(<Self as ::unity::ClassIdentity>::class(), __offset)
64        }
65
66        #[inline]
67        pub fn set_version(value: i32) {
68            static OFFSET: ::std::sync::OnceLock<usize> = ::std::sync::OnceLock::new();
69            let __offset = ::unity::cached_field_offset_static::<Self>(&OFFSET, "Version");
70            ::unity::static_field_set_value_at_offset(<Self as ::unity::ClassIdentity>::class(), __offset, value);
71        }
72    }
73}
74
75#[cfg(feature = "app-randomseed-types")]
76pub use __types::*;
77
78#[cfg(feature = "app-randomseed")]
79impl RandomSeed {
80    #[doc = "`Initialize()` overload"]
81    pub fn initialize(&mut self) -> () {
82        unsafe {
83            ::unity::il2cpp_call!((::unity::module_base()+0x2374f40usize)as*mut u8,();
84(*mut RandomSeed)self as*mut RandomSeed)
85        }
86    }
87
88    #[doc = "`Initialize(u32)` overload"]
89    pub fn initialize_2(&mut self, v: impl ::core::convert::Into<u32>) -> () {
90        unsafe {
91            ::unity::il2cpp_call!((::unity::module_base()+0x2375000usize)as*mut u8,();
92(*mut RandomSeed)self as*mut RandomSeed,(u32)::core::convert::Into::into(v))
93        }
94    }
95
96    #[doc = "`Serialize(crate::app::stream_2::Stream_2)` overload"]
97    pub fn serialize(&mut self, stream: impl ::core::convert::Into<crate::app::stream_2::Stream_2>) -> () {
98        unsafe {
99            ::unity::il2cpp_call!((::unity::module_base()+0x2375a20usize)as*mut u8,();
100(*mut RandomSeed)self as*mut RandomSeed,(crate::app::stream_2::Stream_2)::core::convert::Into::into(stream))
101        }
102    }
103
104    #[doc = "`Deserialize(crate::app::stream_2::Stream_2)` overload"]
105    pub fn deserialize(&mut self, stream: impl ::core::convert::Into<crate::app::stream_2::Stream_2>) -> () {
106        unsafe {
107            ::unity::il2cpp_call!((::unity::module_base()+0x2375d50usize)as*mut u8,();
108(*mut RandomSeed)self as*mut RandomSeed,(crate::app::stream_2::Stream_2)::core::convert::Into::into(stream))
109        }
110    }
111
112    #[doc = "`Peek()` overload"]
113    pub fn peek(&mut self) -> i32 {
114        unsafe {
115            ::unity::il2cpp_call!((::unity::module_base()+0x2375060usize)as*mut u8,i32;
116(*mut RandomSeed)self as*mut RandomSeed)
117        }
118    }
119
120    #[doc = "`GetValue()` overload"]
121    pub fn get_value(&mut self) -> i32 {
122        unsafe {
123            ::unity::il2cpp_call!((::unity::module_base()+0x23750c0usize)as*mut u8,i32;
124(*mut RandomSeed)self as*mut RandomSeed)
125        }
126    }
127
128    #[doc = "`GetFloat()` overload"]
129    pub fn get_float(&mut self) -> f32 {
130        unsafe {
131            ::unity::il2cpp_call!((::unity::module_base()+0x2375130usize)as*mut u8,f32;
132(*mut RandomSeed)self as*mut RandomSeed)
133        }
134    }
135
136    #[doc = "`Dump()` overload"]
137    pub fn dump(&mut self) -> () {
138        unsafe {
139            ::unity::il2cpp_call!((::unity::module_base()+0x2376210usize)as*mut u8,();
140(*mut RandomSeed)self as*mut RandomSeed)
141        }
142    }
143
144    #[doc = "`ToString()` overload"]
145    pub fn to_string(&mut self) -> ::unity::Il2CppString {
146        unsafe {
147            ::unity::il2cpp_call!((::unity::module_base()+0x2376220usize)as*mut u8, ::unity::Il2CppString;
148(*mut RandomSeed)self as*mut RandomSeed)
149        }
150    }
151}
152
153#[cfg(feature = "app-randomseed")]
154impl RandomSeed {
155    pub fn initialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
156        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
157    }
158
159    pub fn initialize_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
160        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
161    }
162
163    pub fn serialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
164        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
165    }
166
167    pub fn deserialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
168        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
169    }
170
171    pub fn peek_method_info() -> &'static ::unity::il2cpp::MethodInfo {
172        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
173    }
174
175    pub fn get_value_method_info() -> &'static ::unity::il2cpp::MethodInfo {
176        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
177    }
178
179    pub fn get_float_method_info() -> &'static ::unity::il2cpp::MethodInfo {
180        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
181    }
182
183    pub fn dump_method_info() -> &'static ::unity::il2cpp::MethodInfo {
184        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
185    }
186
187    pub fn to_string_method_info() -> &'static ::unity::il2cpp::MethodInfo {
188        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
189    }
190}
191
192#[cfg(feature = "app-randomseed")]
193#[doc(hidden)]
194pub mod prelude {
195    pub use super::{RandomSeed, RandomSeed_CastType_I2F};
196    #[cfg(feature = "system-object")]
197    pub use crate::system::object::IObjectMethods;
198    #[cfg(feature = "system-valuetype")]
199    pub use crate::system::valuetype::IValueTypeMethods;
200    pub use crate::system::{object::IObject, valuetype::IValueType};
201}