Some refactoring of code. and some cleanups

This commit is contained in:
hondacrx
2019-09-21 12:11:16 -04:00
parent 7c405230cc
commit 35c06c09fd
214 changed files with 1235 additions and 1341 deletions
@@ -19,7 +19,6 @@ using Framework.Constants;
using Framework.Database;
using Framework.GameMath;
using Game.Entities;
using System;
using System.Collections.Generic;
namespace Game.DataStorage
@@ -83,7 +83,7 @@ namespace Game.DataStorage
public T GetRow(uint row)
{
if (row >= _data.Count)
return default(T);
return default;
return _data[(int)row];
}
-1
View File
@@ -21,7 +21,6 @@ using Framework.GameMath;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
namespace Game.DataStorage
{
-1
View File
@@ -19,7 +19,6 @@ using Framework.GameMath;
using System;
using System.Collections.Generic;
using System.IO;
using System.Runtime.InteropServices;
namespace Game.DataStorage
{
@@ -16,7 +16,6 @@
*/
using Framework.Constants;
using System;
namespace Game.DataStorage
{
@@ -16,7 +16,6 @@
*/
using Framework.Constants;
using Framework.GameMath;
using System;
namespace Game.DataStorage
{
@@ -16,7 +16,6 @@
*/
using Framework.Constants;
using System;
namespace Game.DataStorage
{
+1 -1
View File
@@ -85,7 +85,7 @@ namespace Game.DataStorage
if (guild)
guildGuid = guild.GetGUID();
_whoListStorage.Add(new WhoListPlayerInfo(player.GetGUID(), player.GetTeam(), player.GetSession().GetSecurity(), player.getLevel(),
_whoListStorage.Add(new WhoListPlayerInfo(player.GetGUID(), player.GetTeam(), player.GetSession().GetSecurity(), player.GetLevel(),
player.GetClass(), player.GetRace(), player.GetZoneId(), player.m_playerData.NativeSex, player.IsVisible(),
player.IsGameMaster(), playerName, guildName, guildGuid));
}