Revert event names for synced events framework

Keeping these names as short as possible for network traffic purposes.
This commit is contained in:
SilentSpike 2016-06-04 09:46:50 +01:00
parent 9e4fd77745
commit 1b6bbff139
6 changed files with 8 additions and 11 deletions

View File

@ -145,14 +145,14 @@ if (isServer) then {
if (!isServer) then {
["ace_playerJIP", {
ACE_LOGINFO("JIP event synchronization initialized");
[QGVAR(SEH_all), [player]] call CBA_fnc_serverEvent;
["SEH_all", [player]] call CBA_fnc_serverEvent;
}] call CBA_fnc_addEventHandler;
} else {
[QGVAR(SEH_all), FUNC(_handleRequestAllSyncedEvents)] call CBA_fnc_addEventHandler;
["SEH_all", FUNC(_handleRequestAllSyncedEvents)] call CBA_fnc_addEventHandler;
};
[QGVAR(SEH), FUNC(_handleSyncedEvent)] call CBA_fnc_addEventHandler;
[QGVAR(SEH_s), FUNC(_handleRequestSyncedEvent)] call CBA_fnc_addEventHandler;
["SEH", FUNC(_handleSyncedEvent)] call CBA_fnc_addEventHandler;
["SEH_s", FUNC(_handleRequestSyncedEvent)] call CBA_fnc_addEventHandler;
if (isServer) then {
[FUNC(syncedEventPFH), 0.5, []] call CBA_fnc_addPerFrameHandler;

View File

@ -33,9 +33,6 @@ class ACE_newEvents {
playerChanged = "ace_playerChanged";
SettingsInitialized = "ace_settingsInitialized";
SEH_s = QGVAR(SEH_s);
SEH = QGVAR(SEH);
SEH_all = QGVAR(SEH_all);
setStatusEffect = QGVAR(setStatusEffect);
HeadbugFixUsed = QGVAR(headbugFixUsed);
InitSettingsFromModules = QGVAR(initSettingsFromModules);

View File

@ -18,7 +18,7 @@ params ["_client"];
private _eventEntry = HASH_GET(GVAR(syncedEvents),_x);
_eventEntry params ["", "_eventLog"];
[QGVAR(SEH_s), [_x, _eventLog], _client] call CBA_fnc_targetEvent;
["SEH_s", [_x, _eventLog], _client] call CBA_fnc_targetEvent;
false
} count (GVAR(syncedEvents) select 0);

View File

@ -30,7 +30,7 @@ if (isServer) then {
private _eventEntry = HASH_GET(GVAR(syncedEvents),_eventName);
_eventEntry params ["", "_eventLog"];
[QGVAR(SEH_s), [_eventName, _eventLog], _client] call CBA_fnc_targetEvent;
["SEH_s", [_eventName, _eventLog], _client] call CBA_fnc_targetEvent;
} else {
params ["_eventName", "_eventLog"];

View File

@ -17,4 +17,4 @@ params ["_eventName"];
// Only JIP machines on initialization send this off, requesting sync on events with the serverCommand
if (isServer) exitWith {false};
[QGVAR(SEH_s), [_eventName, ACE_player]] call CBA_fnc_serverEvent;
["SEH_s", [_eventName, ACE_player]] call CBA_fnc_serverEvent;

View File

@ -23,4 +23,4 @@ if (!HASH_HASKEY(GVAR(syncedEvents),_name)) exitWith {
private _eventData = [_name, _args, _ttl];
[QGVAR(SEH), _eventData] call CBA_fnc_globalEvent;
["SEH", _eventData] call CBA_fnc_globalEvent;