Core: SOme code cleanup, more to follow.

This commit is contained in:
hondacrx
2021-03-20 22:48:48 -04:00
parent 62f554f2e0
commit 62ec699ec6
318 changed files with 5080 additions and 5125 deletions
+5 -5
View File
@@ -1259,13 +1259,13 @@ namespace Game.Scripting
}
uint _ScriptCount;
public Dictionary<uint, SpellSummary> spellSummaryStorage = new Dictionary<uint, SpellSummary>();
Hashtable ScriptStorage = new Hashtable();
public Dictionary<uint, SpellSummary> spellSummaryStorage = new();
Hashtable ScriptStorage = new();
Dictionary<uint, WaypointPath> _waypointStore = new Dictionary<uint, WaypointPath>();
Dictionary<uint, WaypointPath> _waypointStore = new();
// creature entry + chain ID
MultiMap<Tuple<uint, ushort>, SplineChainLink> m_mSplineChainsMap = new MultiMap<Tuple<uint, ushort>, SplineChainLink>(); // spline chains
MultiMap<Tuple<uint, ushort>, SplineChainLink> m_mSplineChainsMap = new(); // spline chains
}
public interface IScriptRegistry
@@ -1348,7 +1348,7 @@ namespace Game.Scripting
// Counter used for code-only scripts.
uint _scriptIdCounter;
Dictionary<uint, TValue> ScriptMap = new Dictionary<uint, TValue>();
Dictionary<uint, TValue> ScriptMap = new();
}
public class SpellSummary