mirror of
https://github.com/vcmi/vcmi.git
synced 2026-05-22 09:55:17 +02:00
31 lines
715 B
C++
31 lines
715 B
C++
/*
|
|
* Discord.h, part of VCMI engine
|
|
*
|
|
* Authors: listed in file AUTHORS in main folder
|
|
*
|
|
* License: GNU General Public License v2.0 or later
|
|
* Full text of license available in license.txt file, in main folder
|
|
*
|
|
*/
|
|
#pragma once
|
|
|
|
#include "StdInc.h"
|
|
|
|
VCMI_LIB_NAMESPACE_BEGIN
|
|
struct StartInfo;
|
|
class CMap;
|
|
VCMI_LIB_NAMESPACE_END
|
|
|
|
class Discord : boost::noncopyable
|
|
{
|
|
time_t startTime = time(nullptr);
|
|
bool enabled;
|
|
public:
|
|
Discord();
|
|
~Discord();
|
|
void setStatus(const std::string & state, const std::string & details, const std::tuple<int, int> & partySize);
|
|
void clearStatus();
|
|
|
|
void setPlayingStatus(std::shared_ptr<StartInfo> si, const CMap * map, int humanInterfacesCount);
|
|
};
|