Change internal event framework names to contain prefix and be as short as possible

This commit is contained in:
jonpas 2016-06-04 21:05:26 +02:00
parent 90ebf9638b
commit 5a20f1286b
6 changed files with 13 additions and 8 deletions

View File

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

View File

@ -70,6 +70,11 @@ class ACE_newEvents {
engineOn = QGVAR(engineOn);
setFuel = QGVAR(setFuel);
setDir = QGVAR(setDir);
// Events framework
SEH_s = ACEs;
SEH = ACEe;
SEH_all = ACEa;
};
#include "CfgEventHandlers.hpp"

View File

@ -18,7 +18,7 @@ params ["_client"];
private _eventEntry = HASH_GET(GVAR(syncedEvents),_x);
_eventEntry params ["", "_eventLog"];
["SEH_s", [_x, _eventLog], _client] call CBA_fnc_targetEvent;
["ACEs", [_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"];
["SEH_s", [_eventName, _eventLog], _client] call CBA_fnc_targetEvent;
["ACEs", [_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};
["SEH_s", [_eventName, ACE_player]] call CBA_fnc_serverEvent;
["ACEs", [_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];
["SEH", _eventData] call CBA_fnc_globalEvent;
["ACEe", _eventData] call CBA_fnc_globalEvent;