AppModel: Wrap AddressMap TypeInfo/TypeRef/MethodInfo in AppReference
This commit is contained in:
29
Il2CppInspector.Common/Model/AppReference.cs
Normal file
29
Il2CppInspector.Common/Model/AppReference.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
Copyright 2020 Katy Coe - http://www.djkaty.com - https://github.com/djkaty
|
||||
|
||||
All rights reserved.
|
||||
*/
|
||||
|
||||
using Il2CppInspector.Cpp;
|
||||
|
||||
namespace Il2CppInspector.Model
|
||||
{
|
||||
// Class that represents a single pointer in the address map which references a method or type
|
||||
public class AppReference
|
||||
{
|
||||
public CppField Field { get; set; }
|
||||
}
|
||||
|
||||
// Reference to a method (MethodInfo *)
|
||||
public class AppMethodReference : AppReference
|
||||
{
|
||||
public AppMethod Method { get; set; }
|
||||
}
|
||||
|
||||
// Reference to a type (Il2CppObject * or Il2CppType *, use Field to determine which)
|
||||
public class AppTypeReference : AppReference
|
||||
{
|
||||
// The corresponding C++ function pointer type
|
||||
public AppType Type { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user