Core/Realms: Remove duplicate realm names storage
Port From (https://github.com/TrinityCore/TrinityCore/commit/7f5e47c396e49da2530aabac05f7ca3c0f177298)
This commit is contained in:
@@ -139,7 +139,21 @@ public class RealmManager : Singleton<RealmManager>
|
||||
return _realms.LookupByKey(id);
|
||||
}
|
||||
|
||||
public RealmBuildInfo GetBuildInfo(uint build)
|
||||
public bool GetRealmNames(RealmId id, out string name, out string normalizedName)
|
||||
{
|
||||
name = null;
|
||||
normalizedName = null;
|
||||
|
||||
Realm realm = GetRealm(id);
|
||||
if (realm == null)
|
||||
return false;
|
||||
|
||||
name = realm.Name;
|
||||
normalizedName = realm.NormalizedName;
|
||||
return true;
|
||||
}
|
||||
|
||||
public RealmBuildInfo GetBuildInfo(uint build)
|
||||
{
|
||||
foreach (var clientBuild in _builds)
|
||||
if (clientBuild.Build == build)
|
||||
|
||||
Reference in New Issue
Block a user