mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-20 05:28:22 +00:00
[Expeditions] Track DZ member status in world (#1341)
World now caches and tracks member statuses so it can send them to zones that request them on startup. Prior to this the cle would be searched in world for every zone startup caching request, now it's only searched once when a new expedition is created. Bulk loading statuses removed since it would only be needed on world startup now and likely have no clients in the client list anyway. This also lets world choose non-linkdead members on expedition leader changes and better detect when a leader change needs to occur
This commit is contained in:
+3
-1
@@ -32,16 +32,18 @@ public:
|
||||
Expedition();
|
||||
|
||||
void RemoveMember(uint32_t character_id);
|
||||
void CacheMemberStatuses();
|
||||
void CheckExpireWarning();
|
||||
void CheckLeader();
|
||||
void ChooseNewLeader();
|
||||
DynamicZone& GetDynamicZone() { return m_dynamic_zone; }
|
||||
bool Process();
|
||||
|
||||
void SendZoneMemberStatuses(uint16_t zone_id, uint16_t instance_id);
|
||||
void SendZonesExpeditionDeleted();
|
||||
void SendZonesExpireWarning(uint32_t minutes_remaining);
|
||||
void SetDynamicZone(DynamicZone&& dz);
|
||||
bool SetNewLeader(const DynamicZoneMember& member);
|
||||
void UpdateMemberStatus(uint32_t character_id, DynamicZoneMemberStatus status);
|
||||
|
||||
private:
|
||||
void SendZonesLeaderChanged();
|
||||
|
||||
Reference in New Issue
Block a user