AppModel: Wrap AddressMap TypeInfo/TypeRef/MethodInfo in AppReference

This commit is contained in:
Katy Coe
2020-08-14 02:53:39 +02:00
parent 3a22ac203a
commit 26a4ee14e9
2 changed files with 55 additions and 3 deletions

View 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; }
}
}