Skip to main content

engage/generated/app/
random_2.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-random_2-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::{
9        object::{IObject, Object},
10        r#enum::{Enum, IEnum},
11        valuetype::{IValueType, ValueType},
12    };
13
14    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/random_2/Random_Type.md"))]
15    #[repr(C)]
16    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
17    pub struct Random_Type {
18        pub value: i32,
19    }
20    impl ::unity::ClassIdentity for Random_Type {
21        const NAME: &'static str = "Random.Type";
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 Random_Type {
30        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
31            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
32        }
33    }
34    impl Random_Type {
35        pub fn system() -> Self {
36            Self { value: 0 }
37        }
38
39        pub fn game() -> Self {
40            Self { value: 1 }
41        }
42
43        pub fn spot() -> Self {
44            Self { value: 2 }
45        }
46
47        pub fn hub() -> Self {
48            Self { value: 3 }
49        }
50
51        pub fn hub_item() -> Self {
52            Self { value: 4 }
53        }
54
55        pub fn kill_bonus() -> Self {
56            Self { value: 5 }
57        }
58
59        pub fn combat() -> Self {
60            Self { value: 6 }
61        }
62
63        pub fn num() -> Self {
64            Self { value: 7 }
65        }
66    }
67
68    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/random_2/Random_2.md"))]
69    #[::unity::class(namespace = "App", name = "Random")]
70    #[parent(crate::system::object::Object)]
71    pub struct Random_2 {
72        #[static_field]
73        #[rename(name = "s_Rand")]
74        pub s_rand: ::unity::Array<crate::app::random_2::Random_2>,
75        #[offset(16)]
76        #[rename(name = "m_Seed")]
77        pub m_seed: crate::app::randomseed::RandomSeed,
78    }
79}
80
81#[cfg(feature = "app-random_2-types")]
82pub use __types::*;
83
84#[cfg(feature = "app-random_2")]
85impl Random_2 {
86    #[doc = "`InitializeAll()` overload"]
87    pub fn initialize_all() -> () {
88        unsafe {
89            ::unity::il2cpp_call!((::unity::module_base()+0x2374040usize)as*mut u8,();
90            )
91        }
92    }
93
94    #[doc = "`InitializeAll(u32)` overload"]
95    pub fn initialize_all_2(v: impl ::core::convert::Into<u32>) -> () {
96        unsafe {
97            ::unity::il2cpp_call!((::unity::module_base()+0x2374a90usize)as*mut u8,();
98(u32)::core::convert::Into::into(v))
99        }
100    }
101
102    #[doc = "`GetInstance(crate::app::random_2::Random_Type)` overload"]
103    pub fn get_instance(r#type: impl ::core::convert::Into<crate::app::random_2::Random_Type>) -> crate::app::random_2::Random_2 {
104        unsafe {
105            ::unity::il2cpp_call!((::unity::module_base()+0x2374be0usize)as*mut u8,crate::app::random_2::Random_2;
106(crate::app::random_2::Random_Type)::core::convert::Into::into(r#type))
107        }
108    }
109
110    #[doc = "`IsSave(crate::app::random_2::Random_Type)` overload"]
111    pub fn is_save(r#type: impl ::core::convert::Into<crate::app::random_2::Random_Type>) -> bool {
112        unsafe {
113            ::unity::il2cpp_call!((::unity::module_base()+0x2374c60usize)as*mut u8,bool;
114(crate::app::random_2::Random_Type)::core::convert::Into::into(r#type))
115        }
116    }
117
118    #[doc = "`get_System()` overload"]
119    pub fn get_system() -> crate::app::random_2::Random_2 {
120        unsafe {
121            ::unity::il2cpp_call!((::unity::module_base()+0x23746e0usize)as*mut u8,crate::app::random_2::Random_2;
122            )
123        }
124    }
125
126    #[doc = "`get_Game()` overload"]
127    pub fn get_game() -> crate::app::random_2::Random_2 {
128        unsafe {
129            ::unity::il2cpp_call!((::unity::module_base()+0x2374c70usize)as*mut u8,crate::app::random_2::Random_2;
130            )
131        }
132    }
133
134    #[doc = "`get_Spot()` overload"]
135    pub fn get_spot() -> crate::app::random_2::Random_2 {
136        unsafe {
137            ::unity::il2cpp_call!((::unity::module_base()+0x2374ce0usize)as*mut u8,crate::app::random_2::Random_2;
138            )
139        }
140    }
141
142    #[doc = "`get_Hub()` overload"]
143    pub fn get_hub() -> crate::app::random_2::Random_2 {
144        unsafe {
145            ::unity::il2cpp_call!((::unity::module_base()+0x2374d50usize)as*mut u8,crate::app::random_2::Random_2;
146            )
147        }
148    }
149
150    #[doc = "`get_HubItem()` overload"]
151    pub fn get_hub_item() -> crate::app::random_2::Random_2 {
152        unsafe {
153            ::unity::il2cpp_call!((::unity::module_base()+0x2374dc0usize)as*mut u8,crate::app::random_2::Random_2;
154            )
155        }
156    }
157
158    #[doc = "`get_KillBonus()` overload"]
159    pub fn get_kill_bonus() -> crate::app::random_2::Random_2 {
160        unsafe {
161            ::unity::il2cpp_call!((::unity::module_base()+0x2374e30usize)as*mut u8,crate::app::random_2::Random_2;
162            )
163        }
164    }
165
166    #[doc = "`get_Combat()` overload"]
167    pub fn get_combat() -> crate::app::random_2::Random_2 {
168        unsafe {
169            ::unity::il2cpp_call!((::unity::module_base()+0x2374ea0usize)as*mut u8,crate::app::random_2::Random_2;
170            )
171        }
172    }
173
174    #[doc = "`Serialize(crate::app::stream_2::Stream_2)` overload"]
175    pub fn serialize(stream: impl ::core::convert::Into<crate::app::stream_2::Stream_2>) -> () {
176        unsafe {
177            ::unity::il2cpp_call!((::unity::module_base()+0x2375660usize)as*mut u8,();
178(crate::app::stream_2::Stream_2)::core::convert::Into::into(stream))
179        }
180    }
181
182    #[doc = "`Deserialize(crate::app::stream_2::Stream_2)` overload"]
183    pub fn deserialize(stream: impl ::core::convert::Into<crate::app::stream_2::Stream_2>) -> () {
184        unsafe {
185            ::unity::il2cpp_call!((::unity::module_base()+0x2375a90usize)as*mut u8,();
186(crate::app::stream_2::Stream_2)::core::convert::Into::into(stream))
187        }
188    }
189}
190
191#[cfg(feature = "app-random_2")]
192pub trait IRandom_2Methods: IRandom_2 {
193    #[doc = "`.ctor()` overload"]
194    fn ctor(self) -> () {
195        unsafe {
196            let __receiver = <Random_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
197            ::unity::il2cpp_call!((::unity::module_base()+0x23746b0usize)as*mut u8,();
198(Random_2)__receiver)
199        }
200    }
201    #[doc = "`.ctor(u32)` overload"]
202    fn ctor_2(self, seed: impl ::core::convert::Into<u32>) -> () {
203        unsafe {
204            let __receiver = <Random_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
205            ::unity::il2cpp_call!((::unity::module_base()+0x2374f10usize)as*mut u8,();
206(Random_2)__receiver,(u32)::core::convert::Into::into(seed))
207        }
208    }
209    #[doc = "`Initialize()` overload"]
210    fn initialize(self) -> () {
211        unsafe {
212            let __receiver = <Random_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
213            ::unity::il2cpp_call!((::unity::module_base()+0x2374750usize)as*mut u8,();
214(Random_2)__receiver)
215        }
216    }
217    #[doc = "`Initialize(u32)` overload"]
218    fn initialize_2(self, v: impl ::core::convert::Into<u32>) -> () {
219        unsafe {
220            let __receiver = <Random_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
221            ::unity::il2cpp_call!((::unity::module_base()+0x2374900usize)as*mut u8,();
222(Random_2)__receiver,(u32)::core::convert::Into::into(v))
223        }
224    }
225    #[doc = "`Peek()` overload"]
226    fn peek(self) -> i32 {
227        unsafe {
228            let __receiver = <Random_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
229            ::unity::il2cpp_call!((::unity::module_base()+0x2375040usize)as*mut u8,i32;
230(Random_2)__receiver)
231        }
232    }
233    #[doc = "`Spin(i32)` overload"]
234    fn spin(self, count: impl ::core::convert::Into<i32>) -> crate::app::random_2::Random_2 {
235        unsafe {
236            let __receiver = <Random_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
237            ::unity::il2cpp_call!((::unity::module_base()+0x2375080usize)as*mut u8,crate::app::random_2::Random_2;
238(Random_2)__receiver,(i32)::core::convert::Into::into(count))
239        }
240    }
241    #[doc = "`GetValue()` overload"]
242    fn get_value(self) -> i32 {
243        unsafe {
244            let __receiver = <Random_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
245            ::unity::il2cpp_call!((::unity::module_base()+0x23748d0usize)as*mut u8,i32;
246(Random_2)__receiver)
247        }
248    }
249    #[doc = "`GetF01()` overload"]
250    fn get_f01(self) -> f32 {
251        unsafe {
252            let __receiver = <Random_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
253            ::unity::il2cpp_call!((::unity::module_base()+0x23750f0usize)as*mut u8,f32;
254(Random_2)__receiver)
255        }
256    }
257    #[doc = "`GetValue(i32)` overload"]
258    fn get_value_2(self, num: impl ::core::convert::Into<i32>) -> i32 {
259        unsafe {
260            let __receiver = <Random_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
261            ::unity::il2cpp_call!((::unity::module_base()+0x2375170usize)as*mut u8,i32;
262(Random_2)__receiver,(i32)::core::convert::Into::into(num))
263        }
264    }
265    #[doc = "`GetMinMax(i32, i32)` overload"]
266    fn get_min_max(self, min: impl ::core::convert::Into<i32>, max: impl ::core::convert::Into<i32>) -> i32 {
267        unsafe {
268            let __receiver = <Random_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
269            ::unity::il2cpp_call!((::unity::module_base()+0x23751b0usize)as*mut u8,i32;
270(Random_2)__receiver,(i32)::core::convert::Into::into(min),(i32)::core::convert::Into::into(max))
271        }
272    }
273    #[doc = "`GetMinMax(f32, f32)` overload"]
274    fn get_min_max_2(self, min: impl ::core::convert::Into<f32>, max: impl ::core::convert::Into<f32>) -> f32 {
275        unsafe {
276            let __receiver = <Random_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
277            ::unity::il2cpp_call!((::unity::module_base()+0x23751f0usize)as*mut u8,f32;
278(Random_2)__receiver,(f32)::core::convert::Into::into(min),(f32)::core::convert::Into::into(max))
279        }
280    }
281    #[doc = "`GetMaxMin(i32, i32)` overload"]
282    fn get_max_min(self, min: impl ::core::convert::Into<i32>, max: impl ::core::convert::Into<i32>) -> i32 {
283        unsafe {
284            let __receiver = <Random_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
285            ::unity::il2cpp_call!((::unity::module_base()+0x2375240usize)as*mut u8,i32;
286(Random_2)__receiver,(i32)::core::convert::Into::into(min),(i32)::core::convert::Into::into(max))
287        }
288    }
289    #[doc = "`get_insideUnitSphere()` overload"]
290    fn get_inside_unit_sphere(self) -> crate::unity_engine::vector3::Vector3 {
291        unsafe {
292            let __receiver = <Random_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
293            ::unity::il2cpp_call!((::unity::module_base()+0x2375290usize)as*mut u8,crate::unity_engine::vector3::Vector3;
294(Random_2)__receiver)
295        }
296    }
297    #[doc = "`get_insideUnitCircle()` overload"]
298    fn get_inside_unit_circle(self) -> crate::unity_engine::vector2::Vector2 {
299        unsafe {
300            let __receiver = <Random_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
301            ::unity::il2cpp_call!((::unity::module_base()+0x2375400usize)as*mut u8,crate::unity_engine::vector2::Vector2;
302(Random_2)__receiver)
303        }
304    }
305    #[doc = "`IsProbability100(f32)` overload"]
306    fn is_probability100(self, percent: impl ::core::convert::Into<f32>) -> bool {
307        unsafe {
308            let __receiver = <Random_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
309            ::unity::il2cpp_call!((::unity::module_base()+0x23754b0usize)as*mut u8,bool;
310(Random_2)__receiver,(f32)::core::convert::Into::into(percent))
311        }
312    }
313    fn shuffle<M0: ::unity::IlType + ::core::marker::Copy + ::unity::ClassIdentity>(
314        self,
315        list: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<M0>>,
316    ) -> () {
317        static OPEN: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> =
318            ::std::sync::LazyLock::new(|| ::unity::lookup::method_info_on_class(<Random_2 as ::unity::ClassIdentity>::class(), "Shuffle", 1));
319        #[allow(clippy::type_complexity)]
320        static CACHE: ::std::sync::OnceLock<::std::sync::Mutex<::std::collections::HashMap<usize, &'static ::unity::il2cpp::MethodInfo>>> =
321            ::std::sync::OnceLock::new();
322        let _ = false;
323        let __open: &'static ::unity::il2cpp::MethodInfo = match &*OPEN {
324            ::core::result::Result::Ok(mi) => *mi,
325            ::core::result::Result::Err(e) => {
326                panic!(
327                    "method lookup failed: {}
328::{}
329: {}
330",
331                    <Random_2 as ::unity::ClassIdentity>::NAME,
332                    "Shuffle",
333                    e
334                )
335            },
336        };
337        let __cache = CACHE.get_or_init(|| ::std::sync::Mutex::new(::std::collections::HashMap::new()));
338        let __key: usize = <M0 as ::unity::IlType>::il_type() as *const _ as usize;
339        let __inflated: &'static ::unity::il2cpp::MethodInfo = {
340            let mut __guard = __cache.lock().unwrap();
341            *__guard
342                .entry(__key)
343                .or_insert_with(|| ::unity::il2cpp::generic::create_generic_method_info(__open, &[<M0 as ::unity::IlType>::il_type()]))
344        };
345        unsafe {
346            let __receiver = <Random_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
347            let __f: extern "C" fn(Random_2, crate::system::collections::generic::list_1::List_1<M0>, ::unity::OptionalMethod) -> () =
348                ::core::mem::transmute(__inflated.method_ptr);
349            let __mi_opaque: &'static () = &*(__inflated as *const _ as *const ());
350            __f(__receiver, ::core::convert::Into::into(list), ::core::option::Option::Some(__mi_opaque))
351        }
352    }
353    #[doc = "`GetIndex(::unity::Array<i32>)` overload"]
354    fn get_index(self, ratio_table: impl ::core::convert::Into<::unity::Array<i32>>) -> i32 {
355        unsafe {
356            let __receiver = <Random_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
357            ::unity::il2cpp_call!((::unity::module_base()+0x2375520usize)as*mut u8,i32;
358(Random_2)__receiver,(::unity::Array<i32>)::core::convert::Into::into(ratio_table))
359        }
360    }
361    #[doc = "`get_Seed()` overload"]
362    fn get_seed(self) -> crate::app::randomseed::RandomSeed {
363        unsafe {
364            let __receiver = <Random_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
365            ::unity::il2cpp_call!((::unity::module_base()+0x2375630usize)as*mut u8,crate::app::randomseed::RandomSeed;
366(Random_2)__receiver)
367        }
368    }
369    #[doc = "`set_Seed(crate::app::randomseed::RandomSeed)` overload"]
370    fn set_seed(self, value: impl ::core::convert::Into<crate::app::randomseed::RandomSeed>) -> () {
371        unsafe {
372            let __receiver = <Random_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
373            ::unity::il2cpp_call!((::unity::module_base()+0x2375640usize)as*mut u8,();
374(Random_2)__receiver,(crate::app::randomseed::RandomSeed)::core::convert::Into::into(value))
375        }
376    }
377    #[doc = "`Dump()` overload"]
378    fn dump(self) -> () {
379        unsafe {
380            let __receiver = <Random_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
381            ::unity::il2cpp_call!((::unity::module_base()+0x2375650usize)as*mut u8,();
382(Random_2)__receiver)
383        }
384    }
385}
386
387#[cfg(feature = "app-random_2")]
388impl<__T: IRandom_2> IRandom_2Methods for __T {}
389
390#[cfg(feature = "app-random_2")]
391impl Random_2 {
392    pub fn initialize_all_method_info() -> &'static ::unity::il2cpp::MethodInfo {
393        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
394    }
395
396    pub fn initialize_all_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
397        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
398    }
399
400    pub fn get_instance_method_info() -> &'static ::unity::il2cpp::MethodInfo {
401        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
402    }
403
404    pub fn is_save_method_info() -> &'static ::unity::il2cpp::MethodInfo {
405        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
406    }
407
408    pub fn get_system_method_info() -> &'static ::unity::il2cpp::MethodInfo {
409        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
410    }
411
412    pub fn get_game_method_info() -> &'static ::unity::il2cpp::MethodInfo {
413        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
414    }
415
416    pub fn get_spot_method_info() -> &'static ::unity::il2cpp::MethodInfo {
417        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
418    }
419
420    pub fn get_hub_method_info() -> &'static ::unity::il2cpp::MethodInfo {
421        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
422    }
423
424    pub fn get_hub_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
425        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
426    }
427
428    pub fn get_kill_bonus_method_info() -> &'static ::unity::il2cpp::MethodInfo {
429        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
430    }
431
432    pub fn get_combat_method_info() -> &'static ::unity::il2cpp::MethodInfo {
433        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
434    }
435
436    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
437        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
438    }
439
440    pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
441        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
442    }
443
444    pub fn initialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
445        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
446    }
447
448    pub fn initialize_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
449        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
450    }
451
452    pub fn peek_method_info() -> &'static ::unity::il2cpp::MethodInfo {
453        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
454    }
455
456    pub fn spin_method_info() -> &'static ::unity::il2cpp::MethodInfo {
457        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
458    }
459
460    pub fn get_value_method_info() -> &'static ::unity::il2cpp::MethodInfo {
461        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
462    }
463
464    pub fn get_f01_method_info() -> &'static ::unity::il2cpp::MethodInfo {
465        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
466    }
467
468    pub fn get_value_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
469        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
470    }
471
472    pub fn get_min_max_method_info() -> &'static ::unity::il2cpp::MethodInfo {
473        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
474    }
475
476    pub fn get_min_max_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
477        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
478    }
479
480    pub fn get_max_min_method_info() -> &'static ::unity::il2cpp::MethodInfo {
481        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
482    }
483
484    pub fn get_inside_unit_sphere_method_info() -> &'static ::unity::il2cpp::MethodInfo {
485        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
486    }
487
488    pub fn get_inside_unit_circle_method_info() -> &'static ::unity::il2cpp::MethodInfo {
489        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[24]
490    }
491
492    pub fn is_probability100_method_info() -> &'static ::unity::il2cpp::MethodInfo {
493        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[25]
494    }
495
496    pub fn get_index_method_info() -> &'static ::unity::il2cpp::MethodInfo {
497        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[27]
498    }
499
500    pub fn get_seed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
501        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[28]
502    }
503
504    pub fn set_seed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
505        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[29]
506    }
507
508    pub fn dump_method_info() -> &'static ::unity::il2cpp::MethodInfo {
509        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[30]
510    }
511
512    pub fn serialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
513        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[31]
514    }
515
516    pub fn deserialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
517        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[32]
518    }
519}
520
521#[cfg(feature = "app-random_2")]
522impl Random_2 {
523    #[doc = "`.ctor()` — no args"]
524    pub fn new() -> Self {
525        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
526            panic!(
527                "{}
528::{}
529 failed to instantiate",
530                ::core::stringify!(Random_2),
531                ::core::stringify!(new),
532            )
533        });
534        <Self as IRandom_2Methods>::ctor(this);
535        this
536    }
537
538    #[doc = "`.ctor(u32)` — overload selector"]
539    pub fn new_2(seed: u32) -> Self {
540        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
541            panic!(
542                "{}
543::{}
544 failed to instantiate",
545                ::core::stringify!(Random_2),
546                ::core::stringify!(new_2),
547            )
548        });
549        <Self as IRandom_2Methods>::ctor_2(this, seed);
550        this
551    }
552}
553
554#[cfg(feature = "app-random_2")]
555#[doc(hidden)]
556pub mod prelude {
557    pub use super::{IRandom_2, IRandom_2Methods, Random_2, Random_Type};
558    #[cfg(feature = "system-object")]
559    pub use crate::system::object::IObjectMethods;
560    #[cfg(feature = "system-enum")]
561    pub use crate::system::r#enum::IEnumMethods;
562    #[cfg(feature = "system-valuetype")]
563    pub use crate::system::valuetype::IValueTypeMethods;
564    pub use crate::system::{object::IObject, r#enum::IEnum, valuetype::IValueType};
565}