Skip to main content

engage/generated/app/
calculatortable.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-calculatortable-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::{
9        collections::generic::list_1::{IList_1, List_1},
10        object::{IObject, Object},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/calculatortable/CalculatorTable.md"))]
14    #[::unity::class(namespace = "App", name = "CalculatorTable")]
15    #[parent(crate::system::collections::generic::list_1::List_1<i32>)]
16    pub struct CalculatorTable {}
17}
18
19#[cfg(feature = "app-calculatortable-types")]
20pub use __types::*;
21
22#[cfg(feature = "app-calculatortable")]
23pub trait ICalculatorTableMethods: ICalculatorTable {
24    #[doc = "`GetValue(i32, i32, i32)` overload"]
25    fn get_value(self, value: impl ::core::convert::Into<i32>, min: impl ::core::convert::Into<i32>, max: impl ::core::convert::Into<i32>) -> i32 {
26        unsafe {
27            let __receiver = <CalculatorTable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
28            ::unity::il2cpp_call!((::unity::module_base()+0x298fea0usize)as*mut u8,i32;
29(CalculatorTable)__receiver,(i32)::core::convert::Into::into(value),(i32)::core::convert::Into::into(min),(i32)::core::convert::Into::into(max))
30        }
31    }
32    #[doc = "`.ctor()` overload"]
33    fn ctor(self) -> () {
34        unsafe {
35            let __receiver = <CalculatorTable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
36            ::unity::il2cpp_call!((::unity::module_base()+0x298ff70usize)as*mut u8,();
37(CalculatorTable)__receiver)
38        }
39    }
40}
41
42#[cfg(feature = "app-calculatortable")]
43impl<__T: ICalculatorTable> ICalculatorTableMethods for __T {}
44
45#[cfg(feature = "app-calculatortable")]
46impl CalculatorTable {
47    pub fn get_value_method_info() -> &'static ::unity::il2cpp::MethodInfo {
48        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
49    }
50
51    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
52        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
53    }
54}
55
56#[cfg(feature = "app-calculatortable")]
57impl CalculatorTable {
58    #[doc = "`.ctor()` — no args"]
59    pub fn new() -> Self {
60        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
61            panic!(
62                "{}
63::{}
64 failed to instantiate",
65                ::core::stringify!(CalculatorTable),
66                ::core::stringify!(new),
67            )
68        });
69        <Self as ICalculatorTableMethods>::ctor(this);
70        this
71    }
72}
73
74#[cfg(feature = "app-calculatortable")]
75#[doc(hidden)]
76pub mod prelude {
77    pub use super::{CalculatorTable, ICalculatorTable, ICalculatorTableMethods};
78    #[cfg(feature = "system-collections-generic-list_1")]
79    pub use crate::system::collections::generic::list_1::IList_1Methods;
80    #[cfg(feature = "system-object")]
81    pub use crate::system::object::IObjectMethods;
82    pub use crate::system::{collections::generic::list_1::IList_1, object::IObject};
83}