mirror of
https://github.com/db9979/uconsole_asw_game.git
synced 2026-12-05 20:34:16 +01:00
SaveMixin carries save_state, the transactional candidate restore and the slots; save_validate.py holds the pure document validator and comparison helpers; limits.py the bounds shared by simulation, save and validator. Verbatim moves, no behaviour change; Game re-exports the names tests use. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
17 lines
524 B
Python
17 lines
524 B
Python
"""Hard bounds shared by the simulation, the save document and its validator.
|
|
|
|
They live outside ``game.py`` so the persistence mixin (``game_save``) and
|
|
the game itself import them from one place without a circular import.
|
|
"""
|
|
|
|
MAX_AIR_PICTURE_TRACKS = 512
|
|
MAX_TRACK_DISPLAY_ID_LEN = 16
|
|
MAX_OPZ_TRACK_LABELS = 1024
|
|
MAX_SAVED_ENTITIES = 512
|
|
MAX_ENEMY_TORPEDOES = 128
|
|
MAX_DECOYS = 128
|
|
# Save-document bounds for pending and live missiles/torpedoes.
|
|
MAX_SAVED_ASMS = 512
|
|
MAX_SAVED_PLAYER_TORPEDOES = 128
|
|
MAX_SAVED_ESSMS = 128
|