mirror of
https://github.com/EQEmu/Server.git
synced 2026-09-04 14:36:37 +00:00
[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:
@@ -53,6 +53,7 @@ public:
|
||||
void DoAsyncZoneMemberUpdates();
|
||||
bool CanClientLootCorpse(Client* client, uint32_t npc_type_id, uint32_t entity_id);
|
||||
bool IsCurrentZoneDzInstance() const;
|
||||
void MovePCInto(Client* client, bool world_verify = false) const;
|
||||
void RegisterOnClientAddRemove(std::function<void(Client* client, bool removed, bool silent)> on_client_addremove);
|
||||
void SendClientWindowUpdate(Client* client);
|
||||
void SendLeaderNameToZoneMembers();
|
||||
@@ -76,6 +77,7 @@ protected:
|
||||
void ProcessMemberAddRemove(const DynamicZoneMember& member, bool removed) override;
|
||||
bool ProcessMemberStatusChange(uint32_t member_id, DynamicZoneMemberStatus status) override;
|
||||
void ProcessRemoveAllMembers(bool silent = false) override;
|
||||
void ProcessSetSwitchID(int dz_switch_id) override;
|
||||
bool SendServerPacket(ServerPacket* packet) override;
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user