forge/arma/client/addons/cad/XEH_postInitClient.sqf
Jacob Schmidt 45a4f7460a Integrate task contracts and CAD UI pipeline
- add the imported server task addon to the current framework with task ownership, task catalog, mission-manager attack generation, org-owned reward routing, participant notifications, and reputation syncing
- restructure org persistence so core org data, assets, fleet, and members are handled through the current Redis/extension model with matching Rust repository and service updates
- wire the client CAD addon into the framework, actor device action, shared web UI bridge pattern, and task listing/acceptance flow
- add a source-driven CAD web UI layout with ui.config.mjs and extend the shared web UI builder to support custom HTML template pages for multi-surface UIs
2026-03-28 02:20:34 -05:00

25 lines
706 B
Plaintext

#include "script_component.hpp"
if (isNil QGVAR(CADRepository)) then { call FUNC(initRepository); };
if (isNil QGVAR(CADUIBridge)) then { call FUNC(initUIBridge); };
[QGVAR(openCAD), {
call FUNC(openUI);
}] call CFUNC(addEventHandler);
[QGVAR(responseTaskCatalog), {
params [["_entries", [], [[]]]];
if !(isNil QGVAR(CADRepository)) then {
GVAR(CADRepository) call ["setTaskCatalog", [_entries]];
};
GVAR(CADUIBridge) call ["refreshTaskCatalog", []];
}] call CFUNC(addEventHandler);
[QGVAR(responseTaskAccept), {
params [["_result", createHashMap, [createHashMap]]];
GVAR(CADUIBridge) call ["handleTaskAcceptResponse", [_result]];
}] call CFUNC(addEventHandler);