- Revised README.md for the Forge Client Example Addon to clarify its purpose as a template. - Enhanced MODULE_REFERENCE.md to categorize guides into Server and Extension guides and Client guides. - Created detailed usage guides for various client addons including Actor, Bank, CAD, Garage, Locker, Notifications, Organization, Phone, and Store. - Added a Client Common Usage Guide to outline shared browser UI bridge patterns. - Introduced a Client Main Usage Guide to define the foundational elements for client addons. - Established authoritative state notes and usage rules across new guides to ensure clarity on server ownership and client responsibilities.
38 lines
1.3 KiB
Markdown
38 lines
1.3 KiB
Markdown
# Forge Client CAD
|
|
|
|
## Overview
|
|
The CAD addon provides the client map and dispatch interface for task
|
|
assignment, dispatch orders, support requests, group status, group roles, and
|
|
task acknowledge/decline actions.
|
|
|
|
## Dependencies
|
|
- `forge_client_main`
|
|
- server CAD events from `forge_server_cad`
|
|
- server task catalog data exposed through CAD hydrate payloads
|
|
|
|
## Main Components
|
|
- `fnc_initRepository.sqf` caches hydrated CAD view state.
|
|
- `fnc_initUI.sqf` wires the native map, top bar, bottom bar, side panel, and
|
|
dispatcher browser controls.
|
|
- `fnc_initUIBridge.sqf` sends browser actions to server CAD RPCs and pushes
|
|
state back to the UI.
|
|
- `fnc_handleUIEvents.sqf` handles `cad::*` browser events.
|
|
- `fnc_openUI.sqf` opens the CAD display.
|
|
|
|
## Supported Actions
|
|
- hydrate CAD state
|
|
- assign active tasks to groups
|
|
- create and close dispatch orders
|
|
- submit and close support requests
|
|
- acknowledge or decline assigned tasks
|
|
- update group status, role, and profile
|
|
- focus map requests and toggle panels
|
|
|
|
## Notes
|
|
CAD task visibility depends on server-side task catalog entries. Tasks created
|
|
through Forge task modules or `forge_server_task_fnc_startTask` are the normal
|
|
CAD-compatible task sources.
|
|
|
|
See [MAP_README.md](./MAP_README.md) for details on the integrated native map
|
|
and browser layout.
|