Jacob Schmidt 9ab4ff9fd9 Update documentation for phone repository and SurrealDB setup
- Changed references from `PhoneClass` to `PhoneRepository` in the phone usage guide.
- Added payroll and treasury transfer requests to the client organization usage guide.
- Updated SurrealDB setup documentation with helper scripts for database management.
2026-05-16 10:09:25 -05:00
..
2026-04-06 19:07:18 -05:00
2026-04-06 19:07:18 -05:00

Forge Client Phone

Overview

The phone addon provides the in-game phone UI for contacts, SMS messages, and email. It keeps a local PhoneRepository facade for view state and sends all authoritative operations to the server phone addon.

Dependencies

  • forge_client_main
  • server phone events from forge_server_phone
  • notifications for contact/message/email feedback

Main Components

  • fnc_initRepository.sqf initializes the local phone repository.
  • fnc_handleUIEvents.sqf translates browser events into server phone RPCs.
  • fnc_openUI.sqf opens RscPhone.
  • ui/_site contains the browser phone UI source.

Supported Operations

  • initialize and sync phone state
  • refresh contacts
  • add/remove contacts by UID, phone number, or email
  • send, read, and delete SMS messages
  • send, read, and delete email
  • push incoming message/email updates into the browser UI

Runtime Notes

Phone data is owned by the server extension. Client state is only used to render the phone UI and provide immediate feedback.