mirror of
https://github.com/EQEmu/Server.git
synced 2026-08-30 09:37:55 +00:00
Will be redoing the event interface for subscriptions, some work for the wi and crash fixes
This commit is contained in:
+6
-1
@@ -25,6 +25,7 @@
|
||||
#include "../common/string_util.h"
|
||||
#include "../common/random.h"
|
||||
#include "../common/json/json.h"
|
||||
#include "../common/event_sub.h"
|
||||
#include "web_interface.h"
|
||||
|
||||
extern uint32 numzones;
|
||||
@@ -657,7 +658,7 @@ void ZSList::SendLSZones(){
|
||||
}
|
||||
|
||||
int ZSList::GetZoneCount() {
|
||||
return(numzones);
|
||||
return(list.size());
|
||||
}
|
||||
|
||||
void ZSList::GetZoneIDList(std::vector<uint32> &zones) {
|
||||
@@ -698,6 +699,10 @@ void ZSList::WorldShutDown(uint32 time, uint32 interval)
|
||||
|
||||
void ZSList::OnTick(EQ::Timer *t)
|
||||
{
|
||||
if (!EventSubscriptionWatcher::Get()->IsSubscribed("EQW::ZoneUpdate")) {
|
||||
return;
|
||||
}
|
||||
|
||||
Json::Value out;
|
||||
out["event"] = "EQW::ZoneUpdate";
|
||||
out["data"] = Json::Value();
|
||||
|
||||
Reference in New Issue
Block a user