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
@@ -46,7 +46,7 @@ namespace Game
{
uint zone_id = result.Read<uint>(0);
WeatherData wzc = new WeatherData();
WeatherData wzc = new();
for (byte season = 0; season < 4; ++season)
{
@@ -87,7 +87,7 @@ namespace Game
return _weatherData.LookupByKey(zone_id);
}
Dictionary<uint, WeatherData> _weatherData = new Dictionary<uint, WeatherData>();
Dictionary<uint, WeatherData> _weatherData = new();
}
public class Weather
@@ -249,7 +249,7 @@ namespace Game
public void SendWeatherUpdateToPlayer(Player player)
{
WeatherPkt weather = new WeatherPkt(GetWeatherState(), m_grade);
WeatherPkt weather = new(GetWeatherState(), m_grade);
player.SendPacket(weather);
}
@@ -272,7 +272,7 @@ namespace Game
WeatherState state = GetWeatherState();
WeatherPkt weather = new WeatherPkt(state, m_grade);
WeatherPkt weather = new(state, m_grade);
//- Returns false if there were no players found to update
if (!Global.WorldMgr.SendZoneMessage(m_zone, weather))
@@ -383,7 +383,7 @@ namespace Game
uint m_zone;
WeatherType m_type;
float m_grade;
IntervalTimer m_timer = new IntervalTimer();
IntervalTimer m_timer = new();
WeatherData m_weatherChances;
}