Files
airdef/airdef-mod/tests/wasm_contract.toml
T

136 lines
4.1 KiB
TOML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Actual .hmod in the engine sandbox, with default fuel/memory limits.
# Missing render replies exercise fallback paths, not GPU correctness.
[[step]]
ticks = 2
frames = 2
expect.commands = ["airdef"]
[[step]]
command = "airdef capabilities"
[[step]]
command = "airdef deploy patriot"
[[step]]
command = "airdef deploy s400"
[[step]]
command = "airdef ground-cancel 2"
expect.error = "Нет ожидающей заявки RM48U"
# Exercise the typed inventory through the actual WASM command boundary.
[[step]]
command = "airdef ground-load 2"
expect.error = "Нет живого склада с RM48U рядом (16 блоков)"
[[step]]
command = "airdef deploy depot"
[[step]]
command = "airdef ground-stock 3 0"
expect.feedback = "Sandbox: задан начальный запас склада №3: RM48U 0"
[[step]]
command = "airdef ground-load 2"
expect.error = "Склад №3 рядом, но RM48U: 0. Задайте запас: /airdef ground-stock 3 <количество>"
[[step]]
command = "airdef ground-stock 3 2"
expect.feedback = "Sandbox: задан начальный запас склада №3: RM48U 2"
[[step]]
command = "airdef ground-load 2"
expect.feedback = "С-400 №2: загружена RM48U (игровой профиль), ударных 1, ПВО 3; на складе RM48U 1, снятых ракет ПВО 1"
[[step]]
command = "airdef ground-unload 2"
expect.feedback = "С-400 №2: выгружена RM48U; ударных 0, ПВО 4"
[[step]]
command = "airdef autostrike on"
expect.feedback = "Автоудар по ПУ: вкл — свободный С-400 без ожидаемых воздушных задач закажет RM48U, выберет разведанную площадку и нанесёт удар во время налёта"
[[step]]
command = "airdef autostrike off"
expect.feedback = "Автоудар по ПУ: выкл — удары по площадкам задаются вручную (/airdef strike <номер>)"
# Split battery configuration crosses the same saved command boundary.
[[step]]
command = "airdef battery 2 launcher"
expect.feedback = "№2 С-400: режим launcher"
[[step]]
command = "airdef deploy radar_track"
# The profile is chosen at deployment (#134): the old role switch is refused,
# and says where the profile comes from instead of retuning the station.
[[step]]
command = "airdef radar 4 search"
expect.error = "Профиль РЛС задаётся при размещении (deploy radar_search|radar_track|radar_height); переключение в search не меняет оборудование. Доступно on/off."
[[step]]
command = "airdef radar 4 engagement"
expect.error = "Профиль РЛС задаётся при размещении (deploy radar_search|radar_track|radar_height); переключение в engagement не меняет оборудование. Доступно on/off."
[[step]]
command = "airdef radar 4 off"
expect.feedback = "№4 РЛС дальнего обнаружения: излучение РЛС off"
[[step]]
command = "airdef radar 4 on"
expect.feedback = "№4 РЛС дальнего обнаружения: излучение РЛС on"
[[step]]
command = "airdef radar 2 off"
expect.error = "У комплекса нет активной РЛС"
[[step]]
command = "airdef deploy s500_launcher"
# The wave screen's preset button through the command boundary; an empty wave cannot launch.
[[step]]
command = "airdef preset 0"
expect.feedback = "Готовый: Рой Шахедов"
[[step]]
command = "airdef preset 6"
expect.feedback = "Готовый: Пусто"
[[step]]
command = "airdef raid"
expect.error = "Налёт пуст: выберите типы и число"
[[step]]
command = "airdef wave mix 40 1500"
[[step]]
ticks = 240
frames = 120
[[step]]
command = "airdef clear"
[[step]]
ticks = 140
frames = 10
[[step]]
command = "airdef replay stop"
[[step]]
title-screen = true
ticks = 2
frames = 2
[[step]]
player = { x = 100.5, y = 64.0, z = 100.5 }
clock = { game-time = 500, day-time = 6000 }
ticks = 3
frames = 3
[[step]]
reload = true
ticks = 2
frames = 2
expect.commands = ["airdef"]