mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-11 16:51:29 +00:00
[API] Expose Zoneserver Compile Metadata (#4815)
This commit is contained in:
parent
fe08961d25
commit
ca9c1fdd24
@ -32,6 +32,8 @@ void callGetZoneList(Json::Value &response)
|
||||
row["client_address"] = zone->GetCAddress();
|
||||
row["client_local_address"] = zone->GetCLocalAddress();
|
||||
row["client_port"] = zone->GetCPort();
|
||||
row["compile_version"] = zone->GetCurrentVersion();
|
||||
row["compile_date"] = zone->GetCompileDate();
|
||||
row["compile_time"] = zone->GetCompileTime();
|
||||
row["id"] = zone->GetID();
|
||||
row["instance_id"] = zone->GetInstanceID();
|
||||
|
||||
@ -53,6 +53,8 @@ public:
|
||||
|
||||
inline const char* GetZoneName() const { return zone_name; }
|
||||
inline const char* GetZoneLongName() const { return long_name; }
|
||||
inline std::string GetCurrentVersion() const { return CURRENT_VERSION; }
|
||||
inline std::string GetCompileDate() const { return COMPILE_DATE; }
|
||||
const char* GetCompileTime() const{ return compiled; }
|
||||
void SetCompile(char* in_compile){ strcpy(compiled,in_compile); }
|
||||
inline uint32 GetZoneID() const { return zone_server_zone_id; }
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user