[Dynamic Zones] Implement dz switch id (#2343)

This adds the `dz_switch_id` field to doors and dynamic_zones. It will
allow for compasses to be automatically added to dz entrances and will
support moving clients to the dz on use without needing to script it.
These can be imported for switches/doors from live packet dumps.

Also removes compass packet encoders (same struct in all clients)
This commit is contained in:
hg authored and GitHub committed 2022-07-30 21:00:11 -05:00
1 parent 1351f147f4
commit 676467cbdc
42 files changed
+349 -235

No files matched your search

@@ -0,0 +1,5 @@
ALTER TABLE `doors`
ADD COLUMN `dz_switch_id` INT NOT NULL DEFAULT '0' AFTER `is_ldon_door`;
ALTER TABLE `dynamic_zones`
ADD COLUMN `dz_switch_id` INT NOT NULL DEFAULT '0' AFTER `max_players`;