コード例 #1
0
ファイル: MapEngine.cs プロジェクト: zarut/xiah-gcf-emulator
 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
ファイル: MapEngine.cs プロジェクト: zarut/xiah-gcf-emulator
 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();
 }