1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
#pragma once struct CMPlugin : public PLUGIN<CMPlugin> { friend class CMLuaOptions; private: lua_State *L; void Unload(); INT_PTR __cdecl Eval(WPARAM, LPARAM); INT_PTR __cdecl Call(WPARAM, LPARAM); INT_PTR __cdecl Exec(WPARAM, LPARAM); public: OBJLIST<CMLuaScript> Scripts; CMPlugin(); ~CMPlugin(); void Load(); void Reload(); };