#[repr(C)]pub struct Il2CppClass {
pub _1: Il2CppClass1,
pub static_fields: *mut (),
pub rgctx_data: &'static mut Il2CppRGCTXData,
pub _2: Il2CppClass2,
/* private fields */
}
Fields§
§_1: Il2CppClass1
§static_fields: *mut ()
§rgctx_data: &'static mut Il2CppRGCTXData
§_2: Il2CppClass2
Implementations§
source§impl Il2CppClass
impl Il2CppClass
pub fn from_name( namespace: impl AsRef<str>, name: impl AsRef<str>, ) -> Il2CppResult<&'static mut Self>
pub fn from_il2cpptype(ty: &Il2CppType) -> Il2CppResult<&'static mut Self>
pub fn from_system_type( ty: &Il2CppReflectionType, ) -> Il2CppResult<&'static mut Self>
pub fn with_generic_type<'a>( &self, args: impl AsRef<[&'a Il2CppClass]>, ) -> Il2CppResult<&'static mut Il2CppClass>
pub fn clone(&self) -> &'static mut Il2CppClass
pub fn get_static_fields<T>(&self) -> &T
pub fn get_static_fields_mut<T>(&self) -> &mut T
pub fn get_type(&self) -> &Il2CppType
pub fn get_name(&self) -> String
pub fn get_namespace(&self) -> String
pub fn get_vtable(&self) -> &[VirtualInvoke]
pub fn get_vtable_mut(&mut self) -> &mut [VirtualInvoke]
pub fn get_virtual_method( &self, name: impl AsRef<str>, ) -> Option<&VirtualInvoke>
pub fn get_virtual_method_mut( &mut self, name: impl AsRef<str>, ) -> Option<&mut VirtualInvoke>
sourcepub fn get_fields(&self) -> &[FieldInfo]
pub fn get_fields(&self) -> &[FieldInfo]
Returns a slice containing the fields of the class, static and constants included
sourcepub fn get_instance_fields(&self) -> impl Iterator<Item = &FieldInfo>
pub fn get_instance_fields(&self) -> impl Iterator<Item = &FieldInfo>
Returns a Iterator over the fields that are not static or constants