Rise
The Vieneo Province
Loading...
Searching...
No Matches
DiscordIntegration Class Reference

#include <DiscordIntegration.h>

Collaboration diagram for DiscordIntegration:
[legend]

Public Member Functions

void UpdatePresence (const char *prmDetails, const char *prmState, const char *prmLargeImageKey)
void UpdateTelemetry ()
 DiscordIntegration (Networking *prmNetwork, Bus *prmBus, Logger *prmLogger, bool steamEnabled)
void FrameMove ()
 ~DiscordIntegration ()

Private Member Functions

void Trace (const char *msg, Logger::Level level=Logger::Level::Info) const
void SubmitActivity ()

Private Attributes

SteamRichPresence steamPresence
Networking * network {}
Bus * bus {}
Logger * logger {}
std::unique_ptr< RiseDiscord::PresenceSession > social
std::int64_t startTimestamp {}
char state [128] = { 0 }
char details [128] = { 0 }
char largeImageKey [32] = { 0 }
char smallImageKey [32] = { 0 }
char largeImageText [128] = { 0 }
char smallImageText [128] = { 0 }

Detailed Description

Definition at line 10 of file DiscordIntegration.h.

Constructor & Destructor Documentation

◆ DiscordIntegration()

DiscordIntegration::DiscordIntegration ( Networking * prmNetwork,
Bus * prmBus,
Logger * prmLogger,
bool steamEnabled )

Definition at line 333 of file DiscordIntegration.cpp.

Here is the call graph for this function:

◆ ~DiscordIntegration()

DiscordIntegration::~DiscordIntegration ( )

Definition at line 355 of file DiscordIntegration.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ FrameMove()

void DiscordIntegration::FrameMove ( )

Definition at line 350 of file DiscordIntegration.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SubmitActivity()

void DiscordIntegration::SubmitActivity ( )
private

Definition at line 16 of file DiscordIntegration.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Trace()

void DiscordIntegration::Trace ( const char * msg,
Logger::Level level = Logger::Level::Info ) const
private

Definition at line 9 of file DiscordIntegration.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ UpdatePresence()

void DiscordIntegration::UpdatePresence ( const char * prmDetails,
const char * prmState,
const char * prmLargeImageKey )

Definition at line 51 of file DiscordIntegration.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ UpdateTelemetry()

void DiscordIntegration::UpdateTelemetry ( )

Definition at line 62 of file DiscordIntegration.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ bus

Bus* DiscordIntegration::bus {}
private

Definition at line 14 of file DiscordIntegration.h.

◆ details

char DiscordIntegration::details[128] = { 0 }
private

Definition at line 24 of file DiscordIntegration.h.

◆ largeImageKey

char DiscordIntegration::largeImageKey[32] = { 0 }
private

Definition at line 25 of file DiscordIntegration.h.

◆ largeImageText

char DiscordIntegration::largeImageText[128] = { 0 }
private

Definition at line 27 of file DiscordIntegration.h.

◆ logger

Logger* DiscordIntegration::logger {}
private

Definition at line 15 of file DiscordIntegration.h.

◆ network

Networking* DiscordIntegration::network {}
private

Definition at line 13 of file DiscordIntegration.h.

◆ smallImageKey

char DiscordIntegration::smallImageKey[32] = { 0 }
private

Definition at line 26 of file DiscordIntegration.h.

◆ smallImageText

char DiscordIntegration::smallImageText[128] = { 0 }
private

Definition at line 28 of file DiscordIntegration.h.

◆ social

std::unique_ptr<RiseDiscord::PresenceSession> DiscordIntegration::social
private

Definition at line 17 of file DiscordIntegration.h.

◆ startTimestamp

std::int64_t DiscordIntegration::startTimestamp {}
private

Definition at line 18 of file DiscordIntegration.h.

◆ state

char DiscordIntegration::state[128] = { 0 }
private

Definition at line 23 of file DiscordIntegration.h.

◆ steamPresence

SteamRichPresence DiscordIntegration::steamPresence
private

Definition at line 12 of file DiscordIntegration.h.


The documentation for this class was generated from the following files: