2020-05-29 17:36:10 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <wums.h>
|
|
|
|
|
|
|
|
class HookData {
|
|
|
|
public:
|
|
|
|
HookData(wums_hook_type_t type, const void *target) {
|
|
|
|
this->type = type;
|
|
|
|
this->target = target;
|
|
|
|
}
|
|
|
|
|
2021-09-18 11:55:01 +02:00
|
|
|
[[nodiscard]] wums_hook_type_t getType() const {
|
2020-05-29 17:36:10 +02:00
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
2021-09-18 11:55:01 +02:00
|
|
|
[[nodiscard]] const void *getTarget() const {
|
2020-05-29 17:36:10 +02:00
|
|
|
return target;
|
|
|
|
}
|
|
|
|
|
|
|
|
private:
|
|
|
|
wums_hook_type_t type;
|
|
|
|
const void *target;
|
|
|
|
};
|