Nuclide
Software Development Kit for id Tech
richpresence.qc File Reference

Macros

#define RICHPRESENCE_KEYS   2
 

Enumerations

enum  richpresence_t { RICHPRES_STATUS , RICHPRES_CONNECT }
 

Functions

void RichPresence_Set (string strKey, string strValue)
 Sets a rich-presence key to the desired value. More...
 
void RichPresence_Clear (void)
 Clears the current rich-presence status. More...
 
void RichPresence_DumpInfo (void)
 Debug function that prints the currently active rich-presence keys to console. More...
 
bool RichPresence_WasSet (void)
 Returns if we've got an active rich-presence status. More...
 

Variables

string g_richpres [2]
 
var bool g_richpresence_set = false
 

Macro Definition Documentation

◆ RICHPRESENCE_KEYS

#define RICHPRESENCE_KEYS   2

Enumeration Type Documentation

◆ richpresence_t

Enumerator
RICHPRES_STATUS 
RICHPRES_CONNECT 

Function Documentation

◆ RichPresence_Clear()

void RichPresence_Clear ( void  )

Clears the current rich-presence status.

◆ RichPresence_DumpInfo()

void RichPresence_DumpInfo ( void  )

Debug function that prints the currently active rich-presence keys to console.

◆ RichPresence_Set()

void RichPresence_Set ( string  strKey,
string  strValue 
)

Sets a rich-presence key to the desired value.

You keys currently available are: "status", "connect"

Setting the "status" key is meant to be visible to other players on the platform/network you're playing on. This may show up to other people on your friends-list, or some equivalent.

Meanwhile the "connect" key should have the address of a game servers others players can reach you under.

◆ RichPresence_WasSet()

bool RichPresence_WasSet ( void  )

Returns if we've got an active rich-presence status.

Variable Documentation

◆ g_richpres

string g_richpres[2]

◆ g_richpresence_set

var bool g_richpresence_set = false