forked from loongly/PureScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathevent_binding.h
More file actions
41 lines (34 loc) · 948 Bytes
/
event_binding.h
File metadata and controls
41 lines (34 loc) · 948 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#pragma once
#ifndef __h_event_binding__
#define __h_event_binding__
#include "engine_include.h"
//#include "il2cpp-class-internals.h"
#if defined _MSC_VER
//#define THUNK_METHOD __stdcall
#define THUNK_METHOD
#else
#define THUNK_METHOD __attribute__((__stdcall))
#endif
#if defined(__cplusplus)
extern "C" {
#endif // __cplusplus
//typedef void(*EventMethodPointer)();
typedef struct
{
/*const char* module;
const char* name_space;
const char* class_name;*/
//Il2CppClass* i2_klass;
//MonoClass* mono_klass;
//const char* method_name;
//int32_t param_count;
//EventMethodPointer hooked;
MonoMethod* hooked;
Il2CppMethodPointer orign;
}EventMethodDesc;
void init_event_method(EventMethodDesc* desc, MonoClass *monoklass, Il2CppClass* ilklass, const char* method_name, int param_count, Il2CppMethodPointer hook2);
void init_event();
#if defined(__cplusplus)
}
#endif // __cplusplus
#endif // !__h_event_binding__