NetworkHandler.h 590 B

12345678910111213141516171819202122232425
  1. #pragma once
  2. #include <ReferenceCounter.h>
  3. #include "KSGNetwork.h"
  4. #include "FactoryClient.h"
  5. class NetworkHandler : public virtual Framework::ReferenceCounter
  6. {
  7. private:
  8. KSGClient::MainServerClient* msc;
  9. KSGClient::LoginServerClient* lsc;
  10. KSGClient::MinigameServerClient* gsc;
  11. KSGClient::ErhaltungServerClient* esc;
  12. FactoryClient* fc;
  13. int accountId;
  14. public:
  15. NetworkHandler();
  16. ~NetworkHandler();
  17. bool login(Framework::Text name, Framework::Text password);
  18. bool connect(Text ip, short port);
  19. FactoryClient* zFactoryClient() const;
  20. bool leaveGame();
  21. };