OpenRCT2/src/openrct2/network/DiscordService.h

35 lines
754 B
C
Raw Normal View History

2017-11-10 21:23:23 +01:00
/*****************************************************************************
* Copyright (c) 2014-2024 OpenRCT2 developers
*
* For a complete list of all authors, please refer to contributors.md
* Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2
*
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
2017-11-10 21:23:23 +01:00
#pragma once
#ifdef __ENABLE_DISCORD__
2018-07-21 16:17:06 +02:00
# include "../common.h"
2021-12-02 16:31:26 +01:00
# include "../core/Timer.hpp"
2018-06-22 23:02:47 +02:00
2018-07-21 16:17:06 +02:00
# include <limits>
2017-11-12 00:44:03 +01:00
2017-11-12 00:56:24 +01:00
class DiscordService final
2017-11-10 21:23:23 +01:00
{
2017-11-12 00:44:03 +01:00
private:
2021-12-02 16:31:26 +01:00
OpenRCT2::Timer _updateTimer;
2017-11-12 00:44:03 +01:00
2017-11-10 21:23:23 +01:00
public:
DiscordService();
~DiscordService();
2021-12-02 16:35:31 +01:00
void Tick();
2017-11-12 00:44:03 +01:00
private:
2022-02-09 21:57:25 +01:00
void RefreshPresence() const;
2017-11-10 21:23:23 +01:00
};
#endif