refactor: Refactorized whole project structure
This commit is contained in:
17
source/events/sqevents_anticheat.cpp
Normal file
17
source/events/sqevents_anticheat.cpp
Normal file
@@ -0,0 +1,17 @@
|
||||
#include <sqapi.h>
|
||||
#include <pybind11/embed.h>
|
||||
#include <Utils.h>
|
||||
#include "sqevents.h"
|
||||
|
||||
SQInteger sq_onPlayerUseCheat(HSQUIRRELVM vm)
|
||||
{
|
||||
SQInteger playerid, type;
|
||||
|
||||
nonut::sqGetValue(vm, 2, &playerid);
|
||||
nonut::sqGetValue(vm, 3, &type);
|
||||
|
||||
py::dict kwargs = py::dict("playerid"_a=playerid, "type"_a=type);
|
||||
callEvent("onPlayerUseCheat", kwargs);
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user