28 lines
673 B
Plaintext
28 lines
673 B
Plaintext
#include "..\script_component.hpp"
|
|
|
|
if (!hasInterface) exitWith {};
|
|
|
|
call FUNC(updateAssetDiary);
|
|
|
|
// once the server has published that assets have been gathered and distributed to bases (respawn modules),
|
|
// we can update the asset diary on our end using that data
|
|
[QGVAR(assetsGathered), {
|
|
[
|
|
LEVEL_DEBUG,
|
|
QUOTE(COMPONENT),
|
|
"Received gathered base asset data from server",
|
|
[]
|
|
] call EFUNC(common,log);
|
|
|
|
// update the asset diary with the data we've received
|
|
FUNC(updateAssetDiary);
|
|
}] call CBA_fnc_addEventHandlerArgs;
|
|
|
|
[
|
|
LEVEL_DEBUG,
|
|
QUOTE(COMPONENT),
|
|
"postInit complete",
|
|
[]
|
|
] call EFUNC(common,log);
|
|
|
|
localNamespace setVariable [QGVAR(complete), true]; |