Skip to main content

engage/generated/nintendo/message_studio/lib/
binflwfile.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "nintendo-message_studio-lib-binflwfile-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        nintendo::message_studio::lib::binlibmsfilebase::{BinLibmsFileBase, IBinLibmsFileBase},
10        system::object::{IObject, Object},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/nintendo/message_studio/lib/binflwfile/BinFlwFile.md"))]
14    #[::unity::class(namespace = "Nintendo.MessageStudio.Lib", name = "BinFlwFile")]
15    #[parent(crate::nintendo::message_studio::lib::binlibmsfilebase::BinLibmsFileBase)]
16    pub struct BinFlwFile {}
17}
18
19#[cfg(feature = "nintendo-message_studio-lib-binflwfile-types")]
20pub use __types::*;
21
22#[cfg(feature = "nintendo-message_studio-lib-binflwfile")]
23pub trait IBinFlwFileMethods: IBinFlwFile {
24    #[doc = "`InitObject(::unity::IntPtr)` overload"]
25    fn init_object(self, resource_ptr: impl ::core::convert::Into<::unity::IntPtr>) -> ::unity::IntPtr {
26        unsafe {
27            let __receiver = <BinFlwFile as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
28            {
29                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
30                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
31                    panic!(
32                        "unity: virtual slot {}
33 out of range (vtable len {}
34) on the runtime class behind {}
35 (method `{}
36`)",
37                        5usize,
38                        __vt.len(),
39                        <BinFlwFile as ::unity::ClassIdentity>::NAME,
40                        "InitObject",
41                    )
42                });
43                let __inner: extern "C" fn(BinFlwFile, ::unity::IntPtr, ::unity::OptionalMethod) -> ::unity::IntPtr =
44                    ::core::mem::transmute(__vi.method_ptr);
45                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
46                __inner(__receiver, ::core::convert::Into::into(resource_ptr), __mi)
47            }
48        }
49    }
50    #[doc = "`CloseObject(::unity::IntPtr)` overload"]
51    fn close_object(self, object_ptr: impl ::core::convert::Into<::unity::IntPtr>) -> () {
52        unsafe {
53            let __receiver = <BinFlwFile as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
54            {
55                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
56                let __vi = *__vt.get(6usize).unwrap_or_else(|| {
57                    panic!(
58                        "unity: virtual slot {}
59 out of range (vtable len {}
60) on the runtime class behind {}
61 (method `{}
62`)",
63                        6usize,
64                        __vt.len(),
65                        <BinFlwFile as ::unity::ClassIdentity>::NAME,
66                        "CloseObject",
67                    )
68                });
69                let __inner: extern "C" fn(BinFlwFile, ::unity::IntPtr, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
70                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
71                __inner(__receiver, ::core::convert::Into::into(object_ptr), __mi)
72            }
73        }
74    }
75    #[doc = "`GetNodeNum()` overload"]
76    fn get_node_num(self) -> i32 {
77        unsafe {
78            let __receiver = <BinFlwFile as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
79            ::unity::il2cpp_call!((::unity::module_base()+0x1e95d60usize)as*mut u8,i32;
80(BinFlwFile)__receiver)
81        }
82    }
83    #[doc = "`GetEntryNodeIndex(::unity::Il2CppString)` overload"]
84    fn get_entry_node_index(self, label: impl ::core::convert::Into<::unity::Il2CppString>) -> i32 {
85        unsafe {
86            let __receiver = <BinFlwFile as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
87            ::unity::il2cpp_call!((::unity::module_base()+0x1e95dd0usize)as*mut u8,i32;
88(BinFlwFile)__receiver,(::unity::Il2CppString)::core::convert::Into::into(label))
89        }
90    }
91    #[doc = "`GetNodeData(i32)` overload"]
92    fn get_node_data(self, index: impl ::core::convert::Into<i32>) -> crate::nintendo::message_studio::lib::lmsflownodedata::LMSFlowNodeData {
93        unsafe {
94            let __receiver = <BinFlwFile as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
95            ::unity::il2cpp_call!((::unity::module_base()+0x1e95e50usize)as*mut u8,crate::nintendo::message_studio::lib::lmsflownodedata::LMSFlowNodeData;
96(BinFlwFile)__receiver,(i32)::core::convert::Into::into(index))
97        }
98    }
99    #[doc = "`GetCaseIndexesFromBranchNode(i32)` overload"]
100    fn get_case_indexes_from_branch_node(self, index: impl ::core::convert::Into<i32>) -> ::unity::Array<u16> {
101        unsafe {
102            let __receiver = <BinFlwFile as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
103            ::unity::il2cpp_call!((::unity::module_base()+0x1e96040usize)as*mut u8, ::unity::Array<u16> ;
104(BinFlwFile)__receiver,(i32)::core::convert::Into::into(index))
105        }
106    }
107    #[doc = "`GetFlowParamText(i32)` overload"]
108    fn get_flow_param_text(self, offset: impl ::core::convert::Into<i32>) -> ::unity::Il2CppString {
109        unsafe {
110            let __receiver = <BinFlwFile as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
111            ::unity::il2cpp_call!((::unity::module_base()+0x1e96200usize)as*mut u8, ::unity::Il2CppString;
112(BinFlwFile)__receiver,(i32)::core::convert::Into::into(offset))
113        }
114    }
115    #[doc = "`GetIndexTest(i32)` overload"]
116    fn get_index_test(self, index: impl ::core::convert::Into<i32>) -> () {
117        unsafe {
118            let __receiver = <BinFlwFile as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
119            ::unity::il2cpp_call!((::unity::module_base()+0x1e962c0usize)as*mut u8,();
120(BinFlwFile)__receiver,(i32)::core::convert::Into::into(index))
121        }
122    }
123    #[doc = "`.ctor()` overload"]
124    fn ctor(self) -> () {
125        unsafe {
126            let __receiver = <BinFlwFile as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
127            ::unity::il2cpp_call!((::unity::module_base()+0x1e96340usize)as*mut u8,();
128(BinFlwFile)__receiver)
129        }
130    }
131}
132
133#[cfg(feature = "nintendo-message_studio-lib-binflwfile")]
134impl<__T: IBinFlwFile> IBinFlwFileMethods for __T {}
135
136#[cfg(feature = "nintendo-message_studio-lib-binflwfile")]
137impl BinFlwFile {
138    pub fn init_object_method_info() -> &'static ::unity::il2cpp::MethodInfo {
139        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
140    }
141
142    pub fn close_object_method_info() -> &'static ::unity::il2cpp::MethodInfo {
143        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
144    }
145
146    pub fn get_node_num_method_info() -> &'static ::unity::il2cpp::MethodInfo {
147        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
148    }
149
150    pub fn get_entry_node_index_method_info() -> &'static ::unity::il2cpp::MethodInfo {
151        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
152    }
153
154    pub fn get_node_data_method_info() -> &'static ::unity::il2cpp::MethodInfo {
155        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
156    }
157
158    pub fn get_case_indexes_from_branch_node_method_info() -> &'static ::unity::il2cpp::MethodInfo {
159        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
160    }
161
162    pub fn get_flow_param_text_method_info() -> &'static ::unity::il2cpp::MethodInfo {
163        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
164    }
165
166    pub fn get_index_test_method_info() -> &'static ::unity::il2cpp::MethodInfo {
167        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
168    }
169
170    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
171        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
172    }
173}
174
175#[cfg(feature = "nintendo-message_studio-lib-binflwfile")]
176impl BinFlwFile {
177    #[doc = "Direct (non-virtual) call to `BinFlwFile`'s own `InitObject`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
178    pub unsafe fn init_object(this: impl ::core::convert::Into<::unity::IlInstance>, resource_ptr: ::unity::IntPtr) -> ::unity::IntPtr {
179        let __mi = Self::init_object_method_info();
180        let __inner: extern "C" fn(::unity::IlInstance, ::unity::IntPtr, ::unity::OptionalMethod) -> ::unity::IntPtr =
181            ::core::mem::transmute(__mi.method_ptr);
182        __inner(this.into(), resource_ptr, ::core::option::Option::None)
183    }
184
185    #[doc = "Direct (non-virtual) call to `BinFlwFile`'s own `CloseObject`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
186    pub unsafe fn close_object(this: impl ::core::convert::Into<::unity::IlInstance>, object_ptr: ::unity::IntPtr) -> () {
187        let __mi = Self::close_object_method_info();
188        let __inner: extern "C" fn(::unity::IlInstance, ::unity::IntPtr, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
189        __inner(this.into(), object_ptr, ::core::option::Option::None)
190    }
191}
192
193#[cfg(feature = "nintendo-message_studio-lib-binflwfile")]
194impl BinFlwFile {
195    #[doc = "`.ctor()` — no args"]
196    pub fn new() -> Self {
197        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
198            panic!(
199                "{}
200::{}
201 failed to instantiate",
202                ::core::stringify!(BinFlwFile),
203                ::core::stringify!(new),
204            )
205        });
206        <Self as IBinFlwFileMethods>::ctor(this);
207        this
208    }
209}
210
211#[cfg(feature = "nintendo-message_studio-lib-binflwfile")]
212#[doc(hidden)]
213pub mod prelude {
214    pub use super::{BinFlwFile, IBinFlwFile, IBinFlwFileMethods};
215    #[cfg(feature = "nintendo-message_studio-lib-binlibmsfilebase")]
216    pub use crate::nintendo::message_studio::lib::binlibmsfilebase::IBinLibmsFileBaseMethods;
217    #[cfg(feature = "system-object")]
218    pub use crate::system::object::IObjectMethods;
219    pub use crate::{nintendo::message_studio::lib::binlibmsfilebase::IBinLibmsFileBase, system::object::IObject};
220}