957 B
957 B
Legacy Server Environment
This document captures the legacy server-level environment settings and
utilities. References include legacy/hwe/sammo/ServerDefaultEnv.php,
legacy/hwe/sammo/ServerEnv.php, and legacy/hwe/sammo/ServerTool.php.
Server Environment
ServerDefaultEnvholds server-wide constants (e.g.,maxGeneralsPerMinute).ServerEnvextendsServerDefaultEnvand is overridden byd_setting/ServerEnv.phpwhen present.
Turn Term Management
ServerTool::changeServerTerm($turnterm) adjusts the global turn length:
- Validates that
turntermdivides 120 minutes. - Acquires the game lock (
tryLock()), unlessignoreLockis set. - Recomputes each general's
turntimebased on the new interval. - Updates
game_env.turntermandgame_env.starttime. - Broadcasts a global history notice about the change.
This is a direct mutation of runtime schedule and should be treated as an administrative operation.