예제 #1
0
 public MapEngine(string conString, string providerName)
 {
     mapManager = new MapManager(conString, providerName);
     itemDataManager = new ItemDataManager(conString, providerName);
     mapItemManager = new MapItemManager(conString, providerName);
     maps = mapManager.GetAllMaps();
     mapItems = new List<MapItem>();
 }
예제 #2
0
 public MapEngine(string conString, string providerName, Map map)
 {
     mapManager = new MapManager(conString, providerName);
     itemDataManager = new ItemDataManager(conString, providerName);
     mapItemManager = new MapItemManager(conString, providerName);
     this.Map = map;
     mapItems = new List<MapItem>();
     gameEngine = new GameEngine(conString, providerName);
     ActiveClientEntities = new List<BaseEntity>();
     monsterEngine = new MonsterEngine(map.Monsters, ActiveClientEntities);
     monsterEngine.MonsterMove += new EventHandler<MonsterMoveInfoEventArgs>(monsterEngine_MonsterMove);
     monsterEngine.MonsterAttack += new EventHandler<MonsterAttackInfoEventArgs>(monsterEngine_MonsterAttack);
     monsterEngine.StartEngine();
 }