engage/generated/root_motion/
warning.rs1#[cfg(feature = "root_motion-warning-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::{
9 delegate::{Delegate, IDelegate},
10 multicastdelegate::{IMulticastDelegate, MulticastDelegate},
11 object::{IObject, Object},
12 };
13
14 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root_motion/warning/Warning_Logger.md"))]
15 #[::unity::class(namespace = "RootMotion", name = "Warning.Logger")]
16 #[parent(crate::system::multicastdelegate::MulticastDelegate)]
17 pub struct Warning_Logger {}
18
19 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root_motion/warning/Warning.md"))]
20 #[::unity::class(namespace = "RootMotion", name = "Warning")]
21 #[parent(crate::system::object::Object)]
22 pub struct Warning {
23 #[static_field]
24 #[rename(name = "logged")]
25 pub logged: bool,
26 }
27}
28
29#[cfg(feature = "root_motion-warning-types")]
30pub use __types::*;
31
32#[cfg(feature = "root_motion-warning")]
33pub trait IWarning_LoggerMethods: IWarning_Logger {
34 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
35 fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
36 unsafe {
37 let __receiver = <Warning_Logger as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
38 ::unity::il2cpp_call!((::unity::module_base()+0x1b29df0usize)as*mut u8,();
39(Warning_Logger)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
40 }
41 }
42 #[doc = "`Invoke(::unity::Il2CppString)` overload"]
43 fn invoke(self, message: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
44 unsafe {
45 let __receiver = <Warning_Logger as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
46 {
47 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
48 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
49 panic!(
50 "unity: virtual slot {}
51 out of range (vtable len {}
52) on the runtime class behind {}
53 (method `{}
54`)",
55 13usize,
56 __vt.len(),
57 <Warning_Logger as ::unity::ClassIdentity>::NAME,
58 "Invoke",
59 )
60 });
61 let __inner: extern "C" fn(Warning_Logger, ::unity::Il2CppString, ::unity::OptionalMethod) -> () =
62 ::core::mem::transmute(__vi.method_ptr);
63 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
64 __inner(__receiver, ::core::convert::Into::into(message), __mi)
65 }
66 }
67 }
68}
69
70#[cfg(feature = "root_motion-warning")]
71impl<__T: IWarning_Logger> IWarning_LoggerMethods for __T {}
72
73#[cfg(feature = "root_motion-warning")]
74impl Warning_Logger {
75 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
76 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
77 }
78
79 pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
80 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
81 }
82}
83
84#[cfg(feature = "root_motion-warning")]
85impl Warning_Logger {
86 #[doc = "Direct (non-virtual) call to `Warning_Logger`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
87 pub unsafe fn invoke(this: impl ::core::convert::Into<::unity::IlInstance>, message: ::unity::Il2CppString) -> () {
88 let __mi = Self::invoke_method_info();
89 let __inner: extern "C" fn(::unity::IlInstance, ::unity::Il2CppString, ::unity::OptionalMethod) -> () =
90 ::core::mem::transmute(__mi.method_ptr);
91 __inner(this.into(), message, ::core::option::Option::None)
92 }
93}
94
95#[cfg(feature = "root_motion-warning")]
96impl Warning_Logger {
97 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
98 pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
99 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
100 panic!(
101 "{}
102::{}
103 failed to instantiate",
104 ::core::stringify!(Warning_Logger),
105 ::core::stringify!(new),
106 )
107 });
108 <Self as IWarning_LoggerMethods>::ctor(this, object, method);
109 this
110 }
111}
112
113#[cfg(feature = "root_motion-warning")]
114impl Warning {
115 #[doc = "`Log(::unity::Il2CppString, crate::root_motion::warning::Warning_Logger, bool)` overload"]
116 pub fn log(
117 message: impl ::core::convert::Into<::unity::Il2CppString>,
118 logger: impl ::core::convert::Into<crate::root_motion::warning::Warning_Logger>,
119 log_in_edit_mode: impl ::core::convert::Into<bool>,
120 ) -> () {
121 unsafe {
122 ::unity::il2cpp_call!((::unity::module_base()+0x21c4a00usize)as*mut u8,();
123(::unity::Il2CppString)::core::convert::Into::into(message),(crate::root_motion::warning::Warning_Logger)::core::convert::Into::into(logger),(bool)::core::convert::Into::into(log_in_edit_mode))
124 }
125 }
126
127 #[doc = "`Log(::unity::Il2CppString, crate::unity_engine::transform::Transform, bool)` overload"]
128 pub fn log_2(
129 message: impl ::core::convert::Into<::unity::Il2CppString>,
130 context: impl ::core::convert::Into<crate::unity_engine::transform::Transform>,
131 log_in_edit_mode: impl ::core::convert::Into<bool>,
132 ) -> () {
133 unsafe {
134 ::unity::il2cpp_call!((::unity::module_base()+0x21c4ab0usize)as*mut u8,();
135(::unity::Il2CppString)::core::convert::Into::into(message),(crate::unity_engine::transform::Transform)::core::convert::Into::into(context),(bool)::core::convert::Into::into(log_in_edit_mode))
136 }
137 }
138}
139
140#[cfg(feature = "root_motion-warning")]
141impl Warning {
142 pub fn log_method_info() -> &'static ::unity::il2cpp::MethodInfo {
143 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
144 }
145
146 pub fn log_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
147 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
148 }
149}
150
151#[cfg(feature = "root_motion-warning")]
152#[doc(hidden)]
153pub mod prelude {
154 pub use super::{IWarning, IWarning_Logger, IWarning_LoggerMethods, Warning, Warning_Logger};
155 #[cfg(feature = "system-delegate")]
156 pub use crate::system::delegate::IDelegateMethods;
157 #[cfg(feature = "system-multicastdelegate")]
158 pub use crate::system::multicastdelegate::IMulticastDelegateMethods;
159 #[cfg(feature = "system-object")]
160 pub use crate::system::object::IObjectMethods;
161 pub use crate::system::{delegate::IDelegate, multicastdelegate::IMulticastDelegate, object::IObject};
162}