Closed chiteroman closed 1 year ago
Just use GetPropertyByName with Mob manager class.
BNM::LoadClass MobManager(OBFUSCATE_BNM(""), OBFUSCATE_BNM("MobManager"));
BNM::Property<void*> MobManager$$Instance = MobManager.GetPropertyByName(OBFUSCATE_BNM("Instance"));
BNM automatically finding methods in parent class if it not found in base.
Works like a charm, thank you!
I have this class:![image](https://user-images.githubusercontent.com/98092901/218548231-ae97cdf7-700d-4bc5-b18d-824e359e5d5d.png)
And I want to hook the method "Instance" to get the instance of MobManager. Something like this:
TargetableListManagerBase<MobManager>
MobManager is another class which I have already hook it.
Is it possible to do this and get the instance? Thanks.