mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-31 04:56:20 +00:00
Added proper support for arena in nats_manager, misc cleanup
This commit is contained in:
+459
-349
File diff suppressed because it is too large
Load Diff
+3
-2
@@ -16,7 +16,7 @@ public:
|
||||
~NatsManager();
|
||||
void Process();
|
||||
void Unregister();
|
||||
void ZoneSubscribe(const char * zonename);
|
||||
void ZoneSubscribe(const char * zonename, uint32 instance);
|
||||
void Load();
|
||||
void OnChannelMessageEvent(uint32 entity_id, ChannelMessage_Struct * cm);
|
||||
void OnEntityEvent(const EmuOpcode op, uint32 entity_id, uint32 target_id);
|
||||
@@ -37,7 +37,8 @@ protected:
|
||||
natsConnection *conn = NULL;
|
||||
natsStatus s;
|
||||
natsOptions *opts = NULL;
|
||||
std::string subscribedZonename;
|
||||
std::string subscribedZoneName;
|
||||
uint32 subscribedZoneInstance;
|
||||
natsSubscription *zoneChannelMessageSub = NULL;
|
||||
natsSubscription *zoneCommandMessageSub = NULL;
|
||||
natsSubscription *zoneEntityEventSubscribeAllSub = NULL;
|
||||
|
||||
+1
-1
@@ -515,7 +515,7 @@ int main(int argc, char** argv) {
|
||||
entity_list.BeaconProcess();
|
||||
entity_list.EncounterProcess();
|
||||
if (zone->IsLoaded()) {
|
||||
nats.ZoneSubscribe(zone->GetShortName());
|
||||
nats.ZoneSubscribe(zone->GetShortName(), zone->GetInstanceID());
|
||||
nats.Process();
|
||||
}
|
||||
if (zone) {
|
||||
|
||||
Reference in New Issue
Block a user