scroll.server/crates/logic/src/messages
WiseDev 774e7c60cf build and send the battle sector state
npc missions used to get a ServerErrorMessage back. now StartMission builds a
LogicGameMode snapshot off the arena tilemap and answers 21903.

towers come from assets/locations/*.csv the way initDefaultSector does it: tile
coordinates times 500, leader index decided by which half of the map the tower
sits in. the two king towers must be there, the client dereferences them without
a null check. they live in buildings.csv, not characters.csv.

LogicCharacter puts the base object fields fourth, not first. the buff component
writes a fixed array sized by the character_buffs row count even with no buffs.

training_arena parses to 2 kings, 4 princess towers, 36x64 subtiles. snapshot is
602 bytes over 6 objects. the real client has not seen it yet.
2026-08-23 10:24:20 +03:00
..
available_server_command.rs move all crates into crates/, glob members 2026-08-23 08:15:45 +03:00
battle_result.rs battle model: LogicBattle, the object manager and BattleResultMessage 2026-08-23 10:00:16 +03:00
client_capabilities.rs move all crates into crates/, glob members 2026-08-23 08:15:45 +03:00
client_requests.rs decode the four types the client kept sending 2026-08-23 09:48:49 +03:00
end_client_turn.rs move all crates into crates/, glob members 2026-08-23 08:15:45 +03:00
go_home.rs move all crates into crates/, glob members 2026-08-23 08:15:45 +03:00
keep_alive.rs move all crates into crates/, glob members 2026-08-23 08:15:45 +03:00
login.rs move all crates into crates/, glob members 2026-08-23 08:15:45 +03:00
login_failed.rs move all crates into crates/, glob members 2026-08-23 08:15:45 +03:00
login_ok.rs move all crates into crates/, glob members 2026-08-23 08:15:45 +03:00
mod.rs build and send the battle sector state 2026-08-23 10:24:20 +03:00
out_of_sync.rs move all crates into crates/, glob members 2026-08-23 08:15:45 +03:00
own_home_data.rs move all crates into crates/, glob members 2026-08-23 08:15:45 +03:00
sector_state.rs build and send the battle sector state 2026-08-23 10:24:20 +03:00
server_error.rs move all crates into crates/, glob members 2026-08-23 08:15:45 +03:00
start_mission.rs move all crates into crates/, glob members 2026-08-23 08:15:45 +03:00