summaryrefslogtreecommitdiff
path: root/plugins/MirLua/src/plugin.h
blob: ac8b89142ebc4588d515c7df2a02a7611fead85e (plain)
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
#pragma once

struct CMPlugin : public PLUGIN<CMPlugin>
{
	friend class CMLuaOptions;

private:
	CMLua *lua;

	void LoadLua();
	void UnloadLua();

	INT_PTR __cdecl Eval(WPARAM, LPARAM);
	INT_PTR __cdecl Call(WPARAM, LPARAM);
	INT_PTR __cdecl Exec(WPARAM, LPARAM);

public:
	OBJLIST<CMLuaScript> Scripts;

	CMPlugin();

	void Reload();

	int Load() override;
	int Unload() override;
};