private void MacroLoop() { snFight snFightConnect = new snFight(); snGoldRoom snGoldRoomConnect = new snGoldRoom(); snAdventure snAdventureConnect = new snAdventure(); while (true) { if (boolSWFight == true) { Thread.Sleep(1000); snFightConnect.ConnectFight(); } if (boolSWGoldRoom == true) { Thread.Sleep(1000); if (intGoldTeam == 1) { snGoldRoomConnect.ConnectGoldRoom(1); } else if (intGoldTeam == 2) { snGoldRoomConnect.ConnectGoldRoom(2); } else if (intGoldTeam == 3) { snGoldRoomConnect.ConnectGoldRoom(3); } } if (boolSWAdventure == true) { int[] MapPosition = new int[3]; // 선택 영지에 따른 마우스 좌표 AdventureMapPosition amp = new AdventureMapPosition(); MapPosition = amp.MapPosition(intAdventurePlace); snAdventureConnect.ConnectAdventure(intAdventureLevel, intAdventureTeam, MapPosition, intAdventureRepeat, boolChangeDeck); } if (boolSWRaid == true) { } } }
private void MacroLoop() { snFight snFightConnect = new snFight(); snGoldRoom snGoldRoomConnect = new snGoldRoom(); snAdventure snAdventureConnect = new snAdventure(); while (true) { if (boolSWFight == true) { Thread.Sleep(1000); snFightConnect.ConnectFight(); } if (boolSWGoldRoom == true) { Thread.Sleep(1000); if (intGoldTeam == 1) snGoldRoomConnect.ConnectGoldRoom(1); else if (intGoldTeam == 2) snGoldRoomConnect.ConnectGoldRoom(2); else if (intGoldTeam == 3) snGoldRoomConnect.ConnectGoldRoom(3); } if (boolSWAdventure == true) { int[] MapPosition = new int[3]; // 선택 영지에 따른 마우스 좌표 AdventureMapPosition amp = new AdventureMapPosition(); MapPosition = amp.MapPosition(intAdventurePlace); snAdventureConnect.ConnectAdventure(intAdventureLevel, intAdventureTeam, MapPosition, intAdventureRepeat, boolChangeDeck); } if (boolSWRaid == true) { } } }