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
+9 -9
View File
@@ -208,7 +208,7 @@ namespace Game.Maps
{
if (GetWorldObjectCountInNGrid<Player>() == 0 && !map.ActiveObjectsNearGrid(this))
{
ObjectGridStoper worker = new ObjectGridStoper();
ObjectGridStoper worker = new();
var visitor = new Visitor(worker, GridMapTypeMask.AllGrid);
VisitAllGrids(visitor);
SetGridState(GridState.Idle);
@@ -442,14 +442,14 @@ namespace Game.Maps
return 0;
}
public List<Player> players = new List<Player>();
public List<Creature> creatures = new List<Creature>();
public List<Corpse> corpses = new List<Corpse>();
public List<DynamicObject> dynamicObjects = new List<DynamicObject>();
public List<AreaTrigger> areaTriggers = new List<AreaTrigger>();
public List<Conversation> conversations = new List<Conversation>();
public List<GameObject> gameObjects = new List<GameObject>();
public List<WorldObject> worldObjects = new List<WorldObject>();
public List<Player> players = new();
public List<Creature> creatures = new();
public List<Corpse> corpses = new();
public List<DynamicObject> dynamicObjects = new();
public List<AreaTrigger> areaTriggers = new();
public List<Conversation> conversations = new();
public List<GameObject> gameObjects = new();
public List<WorldObject> worldObjects = new();
}
public enum GridState