![]() |
VR-Forces Developer's Guide
|
Builds fallback fog signal slot sequences when SIGSEQ is not present and supplies hardcoded default cycle periods per CATFOG category.
All methods are static; the class is non-instantiable.
Static Public Member Functions | |
| static std::vector< DtSigseqSlot > | generateFogSigseq (float sigperSeconds, const std::string &siggrp) |
| static float | defaultPeriodForCategory (const std::string &catfog) |
Private Member Functions | |
| DtFogSignalSequenceGenerator ()=delete | |
|
privatedelete |
|
static |
Build a slot sequence from SIGPER and SIGGRP when SIGSEQ is absent.
Distributes the sound bursts evenly within the cycle. If the total sound duration would meet or exceed the cycle period, the per-burst sound duration is clamped so the cycle still divides evenly.
| sigperSeconds | Total cycle period in seconds. Returns empty vector if <= 0. |
| siggrp | Raw SIGGRP string, e.g. "(2)" or "(2+1)". Empty string maps to a group count of 1. |
|
static |
Last-resort default cycle period (seconds) per CATFOG label.
Used only when none of the higher-priority sources supply timing: the per-feature SIGSEQ/SIGPER attributes are absent and the FogSignals model definition has no <catfog>_default_sequence override (or that override fails to parse). The override path is the supported way to retune fog signal pacing without rebuilding.
| catfog | Lowercase CATFOG label from s57_attr_map.csv. |