rock-mod
Version:
Rock-Mod is a powerful framework designed for creating and managing mods for Grand Theft Auto (GTA) games.
20 lines (19 loc) • 1 kB
TypeScript
import { type IZoneManager } from "../../common/zone/IZoneManager";
import { type IVector3D } from "../../../../shared/common/utils";
/**
* Реализация `IZoneManager` под CCMP.
*
* RageMP `mp.game.zone.getNameOfZone` маппится 1:1 на GTA V натив
* `GET_NAME_OF_ZONE` (`0x7875CE91B4119A5F`), который в CCMP экспонирован
* как `ccmp.natives.zone.getNameOfZone`. Натив возвращает GXT-ключ зоны
* (например, `"VINE"`, `"DOWNT"`, `"AIRP"`) — локализуется в UI через
* `getLabelText(key)`.
*
* **Hot path:** вызывается ~раз в секунду из `HudController.onInterval` →
* `HudService.syncCurrentLocation` → `LocationService.getLocationByCords`
* → `RockModLocationAdapter.getRegionByCords`. Парная с
* `CCMPPathfindManager.getStreetNameAtCoord`.
*/
export declare class CCMPZoneManager implements IZoneManager {
getNameOfZone(position: IVector3D): string;
}