public GameWorld(Map map) { gameMap = map; playersOnline = new Dictionary<string, Player>(); creaturesOnline = new Dictionary<uint, Creature>(); eventHandler = new EventHandler(); eventHandler.World = this; eventHandler.Start(); lockThis = new Object(); chatSystem = new ChatSystem(map, playersOnline); pathFinder = new PathFinder(map); movingSystem = new MovingSystem(map, this); spellSystem = new SpellSystem(map); }
public GameWorld(Map map) { gameMap = map; playersOnline = new Dictionary <string, Player>(); creaturesOnline = new Dictionary <uint, Creature>(); eventHandler = new EventHandler(); eventHandler.World = this; eventHandler.Start(); lockThis = new Object(); chatSystem = new ChatSystem(map, playersOnline); pathFinder = new PathFinder(map); movingSystem = new MovingSystem(map, this); spellSystem = new SpellSystem(map); }