Discord.h 670 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Discord.h, part of VCMI engine
  3. *
  4. * Authors: listed in file AUTHORS in main folder
  5. *
  6. * License: GNU General Public License v2.0 or later
  7. * Full text of license available in license.txt file, in main folder
  8. *
  9. */
  10. #pragma once
  11. #include "StdInc.h"
  12. VCMI_LIB_NAMESPACE_BEGIN
  13. struct StartInfo;
  14. class CMap;
  15. VCMI_LIB_NAMESPACE_END
  16. class Discord
  17. {
  18. time_t startTime = time(nullptr);
  19. bool enabled;
  20. public:
  21. Discord();
  22. ~Discord();
  23. void setStatus(std::string state, std::string details, std::tuple<int, int> partySize);
  24. void clearStatus();
  25. void setPlayingStatus(std::shared_ptr<StartInfo> si, const CMap * map, int humanInterfacesCount);
  26. };