SAMP.NET/sampdotnethook/Mono.h

25 lines
506 B
C
Raw Permalink Normal View History

2022-08-27 17:16:44 +00:00
#ifndef _MONO_H
#define _MONO_H
2022-08-27 17:10:32 +00:00
2022-08-27 17:16:44 +00:00
// includes... duh...
2022-08-27 17:10:32 +00:00
#include <stdio.h>
2022-08-27 17:16:44 +00:00
#include <mono\jit\jit.h>
#include <mono\metadata\assembly.h>
#include <mono\metadata\debug-helpers.h>
2022-08-27 17:10:32 +00:00
class Mono {
public:
void init();
MonoString* createString(const char* string);
int callReturn(const char* name, void* args[]);
void callMethod(const char* name, void* args[]);
private:
MonoDomain* domain;
MonoAssembly* assembly;
MonoImage* image;
MonoClass* klass;
};
extern Mono *g_Mono;
2022-08-27 17:16:44 +00:00
#endif // _MONO_H