Core/Refactor: Part 1

This commit is contained in:
hondacrx
2018-05-07 18:56:09 -04:00
parent b2c1554065
commit 216db1c23a
83 changed files with 298 additions and 296 deletions
+4 -1
View File
@@ -589,7 +589,6 @@ namespace Game
public Dictionary<byte, byte> GetClassExpansionRequirements() { return _classExpansionRequirementStorage; }
public Expansion GetClassExpansionRequirement(Class class_)
{
var exp = _classExpansionRequirementStorage.LookupByKey(class_);
if (_classExpansionRequirementStorage.ContainsKey((byte)class_))
return (Expansion)_classExpansionRequirementStorage[(byte)class_];
return Expansion.Classic;
@@ -7804,6 +7803,8 @@ namespace Game
AddLocaleString(result.Read<string>(5), locale, data.TitleAlt);
} while (result.NextRow());
Log.outInfo(LogFilter.ServerLoading, "Loaded {0} creature locale strings in {1} ms", _creatureLocaleStorage.Count, Time.GetMSTimeDiffToNow(oldMSTime));
}
public void LoadGameObjectLocales()
{
@@ -8093,6 +8094,8 @@ namespace Game
AddLocaleString(result.Read<string>(2), locale, data.Name);
}
while (result.NextRow());
Log.outInfo(LogFilter.ServerLoading, "Loaded {0} points_of_interest locale strings in {1} ms", _pointOfInterestLocaleStorage.Count, Time.GetMSTimeDiffToNow(oldMSTime));
}
public CreatureLocale GetCreatureLocale(uint entry)