scroll.server/crates/logic/src
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
..
battle build and send the battle sector state 2026-08-23 10:24:20 +03:00
commands decode the four types the client kept sending 2026-08-23 09:48:49 +03:00
data unwind panics instead of aborting the process 2026-08-23 09:42:44 +03:00
home battle model: LogicBattle, the object manager and BattleResultMessage 2026-08-23 10:00:16 +03:00
messages build and send the battle sector state 2026-08-23 10:24:20 +03:00
model deck swapping and achievement claims 2026-08-23 09:24:30 +03:00
factory.rs move all crates into crates/, glob members 2026-08-23 08:15:45 +03:00
lib.rs battle model: LogicBattle, the object manager and BattleResultMessage 2026-08-23 10:00:16 +03:00
logic_random.rs battle model: LogicBattle, the object manager and BattleResultMessage 2026-08-23 10:00:16 +03:00