Removed callback handler, added XEH stuff to main addon

This commit is contained in:
Valmo Trindade
2025-05-16 03:34:51 -03:00
parent c1b00cb050
commit 5c599877ca
10 changed files with 61 additions and 34 deletions

View File

@@ -1,19 +0,0 @@
addMissionEventHandler ["ExtensionCallback", {
params ["_name", "_function", "_data"];
if (_name == "armatak_tcp_socket") then {
[_function, "success", _name] call armatak_fnc_notify;
};
if (_name == "armatak_tcp_socket_error") then {
[_function, "error", _name] call armatak_fnc_notify;
};
if (_name == "armatak_video") then {
[_function, "success", _name] call armatak_fnc_notify;
};
if (_name == "armatak_video_error") then {
[_function, "error", _name] call armatak_fnc_notify;
};
}];

View File

@@ -17,8 +17,6 @@ if (isServer) exitWith {
missionNamespace setVariable ["armatak_tcp_socket_is_running", true];
missionNamespace setVariable ["armatak_group_colors", ["White", "Yellow", "Orange", "Magenta", "Red", "Maroon", "Purple", "DarkBlue", "Blue", "Cyan", "Teal", "Green", "DarkGreen", "Brown"]];
call armatak_fnc_handleCallbacks;
"armatak" callExtension ["tcp_socket:start", [_tak_server_fulladdress]];
_syncUnits = synchronizedObjects _logic;