Magic World game server
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
757 B

5 years ago
5 years ago
5 years ago
  1. #ifndef MW_SESSION_I_H
  2. #define MW_SESSION_I_H
  3. #include <MWSession.h>
  4. #include <MWMap.h>
  5. class MWSessionI : public MW::MWSession
  6. {
  7. public:
  8. MWSessionI(const std::shared_ptr<MWMap>&, const std::string&, bool trace, const std::shared_ptr<Ice::Logger>& logger);
  9. virtual void setCallback(std::shared_ptr<MW::MWMapCallbackPrx>, const Ice::Current&) override;
  10. virtual long long send(std::string, const Ice::Current&) override;
  11. virtual void destroy(const Ice::Current&) override;
  12. private:
  13. const std::shared_ptr<MWMap> _MWMap;
  14. const std::string _name;
  15. std::shared_ptr<MWMapCallbackAdapter> _callback;
  16. bool _destroy = false;
  17. std::mutex _mutex;
  18. const bool _trace;
  19. const std::shared_ptr<Ice::Logger> _logger;
  20. };
  21. #endif