engage/generated/app/
sortconstant.rs1#[cfg(feature = "app-sortconstant-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/app/sortconstant/SortConstant.md"))]
11 #[::unity::class(namespace = "App", name = "SortConstant")]
12 #[parent(crate::system::object::Object)]
13 pub struct SortConstant {
14 #[static_field]
15 #[rename(name = "MergeSortThreshold")]
16 pub merge_sort_threshold: i32,
17 }
18}
19
20#[cfg(feature = "app-sortconstant-types")]
21pub use __types::*;
22
23#[cfg(feature = "app-sortconstant")]
24pub trait ISortConstantMethods: ISortConstant {
25 #[doc = "`.ctor()` overload"]
26 fn ctor(self) -> () {
27 unsafe {
28 let __receiver = <SortConstant as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
29 ::unity::il2cpp_call!((::unity::module_base()+0x1fe48f0usize)as*mut u8,();
30(SortConstant)__receiver)
31 }
32 }
33}
34
35#[cfg(feature = "app-sortconstant")]
36impl<__T: ISortConstant> ISortConstantMethods for __T {}
37
38#[cfg(feature = "app-sortconstant")]
39impl SortConstant {
40 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
41 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
42 }
43}
44
45#[cfg(feature = "app-sortconstant")]
46impl SortConstant {
47 #[doc = "`.ctor()` — no args"]
48 pub fn new() -> Self {
49 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
50 panic!(
51 "{}
52::{}
53 failed to instantiate",
54 ::core::stringify!(SortConstant),
55 ::core::stringify!(new),
56 )
57 });
58 <Self as ISortConstantMethods>::ctor(this);
59 this
60 }
61}
62
63#[cfg(feature = "app-sortconstant")]
64#[doc(hidden)]
65pub mod prelude {
66 pub use super::{ISortConstant, ISortConstantMethods, SortConstant};
67 pub use crate::system::object::IObject;
68 #[cfg(feature = "system-object")]
69 pub use crate::system::object::IObjectMethods;
70}