Core/Realms: Realmlist refactors

* Removed global realm variable from World and use RealmList everywhere
* Match auth build key with client version
* Restored allowedSecurityLevel checks for realmlist packet building
* Restored updating population field
Port From (https://github.com/TrinityCore/TrinityCore/commit/c4b710446d62c95eb8124175203fa5f394912594)
This commit is contained in:
Hondacrx
2024-09-26 12:53:15 -04:00
parent 8341244e4d
commit d70529bc19
36 changed files with 393 additions and 298 deletions
@@ -0,0 +1,17 @@
// Copyright (c) CypherCore <http://github.com/CypherCore> All rights reserved.
// Licensed under the GNU GENERAL PUBLIC LICENSE. See LICENSE file in the project root for full license information.
using System.Text.Json.Serialization;
using Framework.Web.Rest.Realmlist;
namespace Framework.Web.Rest.Realmlist
{
internal class RealmListRAFInfo
{
[JsonPropertyName("wowRealmAddress")]
public int WowRealmAddress { get; set; }
[JsonPropertyName("faction")]
public int Faction { get; set; }
}
}
@@ -5,8 +5,11 @@ using System.Text.Json.Serialization;
namespace Framework.Web
{
public class RealmListUpdate
public class RealmListUpdatePart
{
[JsonPropertyName("wowRealmAddress")]
public int WoWRealmAddress { get; set; }
[JsonPropertyName("update")]
public RealmEntry Update { get; set; } = new RealmEntry();
@@ -9,6 +9,6 @@ namespace Framework.Web
public class RealmListUpdates
{
[JsonPropertyName("updates")]
public IList<RealmListUpdate> Updates { get; set; } = new List<RealmListUpdate>();
public IList<RealmListUpdatePart> Updates { get; set; } = new List<RealmListUpdatePart>();
}
}