mirror of
https://github.com/valmojr/armatak.git
synced 2026-06-13 15:33:29 +00:00
linted all websocket callbacks
This commit is contained in:
@@ -1,13 +1,19 @@
|
||||
waitUntil { !isNil "BIS_fnc_init" };
|
||||
#include "script_component.hpp"
|
||||
|
||||
missionNamespace setVariable ["have_this_runned", true];
|
||||
|
||||
addMissionEventHandler ["ExtensionCallback", {
|
||||
params ["_name", "_function", "_data"];
|
||||
|
||||
if (_name == "armatak_websocket") then {
|
||||
if (_name == "WEBSOCKET") then {
|
||||
[_function, "success", _name] call armatak_main_fnc_notify;
|
||||
};
|
||||
|
||||
if (_name == "armatak_websocket_error") then {
|
||||
if (_name == "WEBSOCKET WARNING") then {
|
||||
[_function, "warning", "WEBSOCKET"] call armatak_main_fnc_notify;
|
||||
};
|
||||
|
||||
if (_name == "WEBSOCKET ERROR") then {
|
||||
[_function, "error", _name] call armatak_main_fnc_notify;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user