111
This commit is contained in:
13
LenheartCallBack/Sq_Pack_Control.nut
Normal file
13
LenheartCallBack/Sq_Pack_Control.nut
Normal file
@@ -0,0 +1,13 @@
|
||||
if (!getroottable().rawin("Pack_Control")) Pack_Control <- {}
|
||||
|
||||
function Sq_Pack_Control(chunk) {
|
||||
|
||||
local Pack_Json = Json_STL("buffer");
|
||||
Pack_Json.Parse(chunk, 0, false);
|
||||
local Op = Pack_Json.Get("op");
|
||||
|
||||
if (Pack_Control.rawin(Op) == true) {
|
||||
Pack_Control[Op](chunk);
|
||||
}
|
||||
Pack_Json.Delete();
|
||||
}
|
||||
Reference in New Issue
Block a user