mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Change internal event framework names to contain prefix and be as short as possible
This commit is contained in:
parent
90ebf9638b
commit
5a20f1286b
@ -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;
|
||||
|
@ -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"
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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"];
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user