mirror of
https://github.com/EQEmu/Server.git
synced 2026-08-29 00:18:18 +00:00
[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:
@@ -247,7 +247,7 @@ XS(XS_Expedition_GetMemberCount) {
|
||||
Expedition* THIS = nullptr;
|
||||
VALIDATE_THIS_IS_EXPEDITION;
|
||||
|
||||
XSRETURN_UV(THIS->GetMemberCount());
|
||||
XSRETURN_UV(THIS->GetDynamicZone().GetMemberCount());
|
||||
}
|
||||
|
||||
XS(XS_Expedition_GetMembers);
|
||||
@@ -262,8 +262,7 @@ XS(XS_Expedition_GetMembers) {
|
||||
|
||||
HV* hash = newHV();
|
||||
|
||||
auto members = THIS->GetMembers();
|
||||
for (const auto& member : members)
|
||||
for (const auto& member : THIS->GetDynamicZone().GetMembers())
|
||||
{
|
||||
hv_store(hash, member.name.c_str(), static_cast<uint32_t>(member.name.size()),
|
||||
newSVuv(member.id), 0);
|
||||
|
||||
Reference in New Issue
Block a user