mirror of
https://github.com/valmojr/armatak.git
synced 2026-06-13 17:43:56 +00:00
Removed callback handler, added XEH stuff to main addon
This commit is contained in:
@@ -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;
|
||||
};
|
||||
}];
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user