コード例 #1
0
ファイル: APBClient.cs プロジェクト: McSimp/APBWatcher
 private void SetupLobbyClient(string username, string password, HardwareStore hw)
 {
     _lobbyClient = new LobbyClient(username, password, hw, _socketFactory);
     _lobbyClient.OnConnectSuccess      += GenerateEventHandler <EventArgs>(HandleLobbyConnectSuccess);
     _lobbyClient.OnDisconnect          += GenerateEventHandler <EventArgs>(HandleLobbyDisconnect);
     _lobbyClient.OnLoginSuccess        += GenerateEventHandler <EventArgs>(HandleLoginSuccess);
     _lobbyClient.OnCharacterList       += GenerateEventHandler <List <CharacterInfo> >(HandleCharacterList);
     _lobbyClient.OnGetWorldListSuccess += GenerateEventHandler <List <WorldInfo> >(HandleWorldListSuccess);
     _lobbyClient.OnGetWorldListFailed  += GenerateEventHandler <int>(HandleWorldListFailed);
     _lobbyClient.OnWorldEnterSuccess   += GenerateEventHandler <WorldEnterData>(HandleLobbyWorldEnterSuccess);
     _characters = null;
 }
コード例 #2
0
 public APBClient(string username, string password, HardwareStore hw, ISocketFactory socketFactory = null)
 {
     SocketFactory = socketFactory;
     SetupLobbyClient(username, password, hw);
 }