Hi i would like to know how i can access a method in an argument,
this should just show you that i want for example access the "getLife" function of the method which is givien by the argument.
C++:
//example, not real code
//dnspy class with these functions
LifePlayer{
LifePlayer();
int getLife(); //0x111111
}
int (*LifePlayer)(void* instance);
void Damage(void* instance, LifePlayer life, bool b){
int x = *(int*)((uint64_t)instance + life).getLife();
//or
int x = LifePlayer(instance).getLife();
//
...
}