[Expeditions] Store members on dynamic zone (#1358)

This moves members from expeditions so other systems can use them

Replace expedition_members table with dynamic_zone_members

Move 'EnableInDynamicZoneStatus' rule to DynamicZone namespace

Modify #dz list to show dz members (not instance players) and type name

Move various queries to repository methods
This commit is contained in:
hg authored and GitHub committed 2021-05-24 21:14:32 -05:00
1 parent e8b94a11f1
commit 15328196e2
31 files changed
+683 -585

No files matched your search

+3 -3
View File
@@ -6916,7 +6916,7 @@ void command_dz(Client* c, const Seperator* sep)
expedition->GetDynamicZone().GetZoneID(),
expedition->GetDynamicZone().GetInstanceID(),
expedition->GetDynamicZone().GetZoneVersion(),
expedition->GetMemberCount(),
expedition->GetDynamicZone().GetMemberCount(),
seconds / 3600, // hours
(seconds / 60) % 60, // minutes
seconds % 60 // seconds
@@ -6982,12 +6982,12 @@ void command_dz(Client* c, const Seperator* sep)
c->Message(Chat::White, fmt::format(
"dz id: [{}] type: [{}] {}: [{}]:[{}]:[{}] members: [{}] remaining: [{:02}:{:02}:{:02}]",
dz.id,
dz.type,
DynamicZone::GetDynamicZoneTypeName(static_cast<DynamicZoneType>(dz.type)),
zone_saylink,
dz.zone,
dz.instance,
dz.version,
dz.player_count,
dz.member_count,
seconds / 3600, // hours
(seconds / 60) % 60, // minutes
seconds % 60 // seconds