Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Rubberduckycooly
GitHub Repository: Rubberduckycooly/RSDKv5-Decompilation
Path: blob/master/RSDKv5/RSDK/User/Core/UserPresence.hpp
1167 views
1
#ifndef USER_PRESENCE_H
2
#define USER_PRESENCE_H
3
4
namespace RSDK
5
{
6
namespace SKU
7
{
8
#if RETRO_REV02
9
10
// This is the base struct, it serves as the base for any API-specific stats
11
// This struct should never be removed
12
struct UserRichPresence {
13
virtual ~UserRichPresence() = default;
14
15
virtual void StageLoad() {}
16
virtual void FrameInit() {}
17
virtual void OnUnknownEvent() {}
18
virtual void SetPresence(int32 id, String *message) {}
19
20
int32 curID = 0;
21
};
22
23
extern UserRichPresence *richPresence;
24
25
// ====================
26
// API Cores
27
// ====================
28
29
// Dummy API
30
#if RETRO_USERCORE_DUMMY
31
#include "RSDK/User/Dummy/DummyPresence.hpp"
32
#endif
33
34
// Steam API
35
#if RETRO_USERCORE_STEAM
36
#include "RSDK/User/Steam/SteamPresence.hpp"
37
#endif
38
39
// Epic Games API
40
#if RETRO_USERCORE_EOS
41
#include "RSDK/User/EOS/EOSPresence.hpp"
42
#endif
43
44
// Switch API
45
#if RETRO_USERCORE_NX
46
#include "RSDK/User/NX/NXPresence.hpp"
47
#endif
48
49
inline void SetPresence(int32 id, String *message) { richPresence->SetPresence(id, message); }
50
#endif
51
52
} // namespace SKU
53
} // namespace RSDK
54
55
#endif // USER_PRESENCE_H
56
57