Rise
The Vieneo Province
Toggle main menu visibility
Loading...
Searching...
No Matches
isteamgamecoordinator.h
Go to the documentation of this file.
1
//====== Copyright ©, Valve Corporation, All rights reserved. =======
2
//
3
// Purpose: interface to the game coordinator for this application
4
//
5
//=============================================================================
6
7
#ifndef ISTEAMGAMECOORDINATOR
8
#define ISTEAMGAMECOORDINATOR
9
#ifdef _WIN32
10
#pragma once
11
#endif
12
13
#include "
steam_api_common.h
"
14
15
16
// list of possible return values from the ISteamGameCoordinator API
17
enum
EGCResults
18
{
19
k_EGCResultOK
= 0,
20
k_EGCResultNoMessage
= 1,
// There is no message in the queue
21
k_EGCResultBufferTooSmall
= 2,
// The buffer is too small for the requested message
22
k_EGCResultNotLoggedOn
= 3,
// The client is not logged onto Steam
23
k_EGCResultInvalidMessage
= 4,
// Something was wrong with the message being sent with SendMessage
24
};
25
26
27
//-----------------------------------------------------------------------------
28
// Purpose: Functions for sending and receiving messages from the Game Coordinator
29
// for this application
30
//-----------------------------------------------------------------------------
31
class
ISteamGameCoordinator
32
{
33
public
:
34
35
// sends a message to the Game Coordinator
36
virtual
EGCResults
SendMessage
(
uint32
unMsgType,
const
void
*pubData,
uint32
cubData ) = 0;
37
38
// returns true if there is a message waiting from the game coordinator
39
virtual
bool
IsMessageAvailable
(
uint32
*pcubMsgSize ) = 0;
40
41
// fills the provided buffer with the first message in the queue and returns k_EGCResultOK or
42
// returns k_EGCResultNoMessage if there is no message waiting. pcubMsgSize is filled with the message size.
43
// If the provided buffer is not large enough to fit the entire message, k_EGCResultBufferTooSmall is returned
44
// and the message remains at the head of the queue.
45
virtual
EGCResults
RetrieveMessage
(
uint32
*punMsgType,
void
*pubDest,
uint32
cubDest,
uint32
*pcubMsgSize ) = 0;
46
47
};
48
#define STEAMGAMECOORDINATOR_INTERFACE_VERSION "SteamGameCoordinator001"
49
50
// callbacks
51
#if defined( VALVE_CALLBACK_PACK_SMALL )
52
#pragma pack( push, 4 )
53
#elif defined( VALVE_CALLBACK_PACK_LARGE )
54
#pragma pack( push, 8 )
55
#else
56
#error steam_api_common.h should define VALVE_CALLBACK_PACK_xxx
57
#endif
58
59
// callback notification - A new message is available for reading from the message queue
60
struct
GCMessageAvailable_t
61
{
62
enum
{
k_iCallback
=
k_iSteamGameCoordinatorCallbacks
+ 1 };
63
uint32
m_nMessageSize
;
64
};
65
66
// callback notification - A message failed to make it to the GC. It may be down temporarily
67
struct
GCMessageFailed_t
68
{
69
enum
{
k_iCallback
=
k_iSteamGameCoordinatorCallbacks
+ 2 };
70
};
71
72
#pragma pack( pop )
73
74
#endif
// ISTEAMGAMECOORDINATOR
ISteamGameCoordinator
Definition
isteamgamecoordinator.h:32
ISteamGameCoordinator::RetrieveMessage
virtual EGCResults RetrieveMessage(uint32 *punMsgType, void *pubDest, uint32 cubDest, uint32 *pcubMsgSize)=0
ISteamGameCoordinator::IsMessageAvailable
virtual bool IsMessageAvailable(uint32 *pcubMsgSize)=0
ISteamGameCoordinator::SendMessage
virtual EGCResults SendMessage(uint32 unMsgType, const void *pubData, uint32 cubData)=0
EGCResults
EGCResults
Definition
isteamgamecoordinator.h:18
k_EGCResultNotLoggedOn
@ k_EGCResultNotLoggedOn
Definition
isteamgamecoordinator.h:22
k_EGCResultInvalidMessage
@ k_EGCResultInvalidMessage
Definition
isteamgamecoordinator.h:23
k_EGCResultNoMessage
@ k_EGCResultNoMessage
Definition
isteamgamecoordinator.h:20
k_EGCResultOK
@ k_EGCResultOK
Definition
isteamgamecoordinator.h:19
k_EGCResultBufferTooSmall
@ k_EGCResultBufferTooSmall
Definition
isteamgamecoordinator.h:21
steam_api_common.h
uint32
const char *typedef uint32(S_CALLTYPE *SteamAPI_CheckCallbackRegistered_t)(int iCallbackNum)
Definition
steam_api_common.h:73
k_iSteamGameCoordinatorCallbacks
@ k_iSteamGameCoordinatorCallbacks
Definition
steam_api_internal.h:260
GCMessageAvailable_t
Definition
isteamgamecoordinator.h:61
GCMessageAvailable_t::m_nMessageSize
uint32 m_nMessageSize
Definition
isteamgamecoordinator.h:63
GCMessageAvailable_t::k_iCallback
@ k_iCallback
Definition
isteamgamecoordinator.h:62
GCMessageFailed_t
Definition
isteamgamecoordinator.h:68
GCMessageFailed_t::k_iCallback
@ k_iCallback
Definition
isteamgamecoordinator.h:69
ThirdParty
SteamworksSDK
include
steam
isteamgamecoordinator.h
Generated on
for Rise by
1.18.0