DDNet documentation
Toggle main menu visibility
Loading...
Searching...
No Matches
steam.h
Go to the documentation of this file.
1
#ifndef ENGINE_STEAM_H
2
#define ENGINE_STEAM_H
3
4
#include "
kernel.h
"
5
6
#include <
base/types.h
>
7
8
class
ISteam
:
public
IInterface
9
{
10
MACRO_INTERFACE
(
"steam"
)
11
public:
12
// Returns nullptr if the name cannot be determined.
13
virtual const
char
*
GetPlayerName
() = 0;
14
15
// Returns nullptr if the no server needs to be joined.
16
// Can change while the game is running.
17
virtual const
NETADDR
*
GetConnectAddress
() = 0;
18
virtual
void
ClearConnectAddress
() = 0;
19
20
virtual
void
Update
() = 0;
21
22
virtual
void
ClearGameInfo
() = 0;
23
virtual
void
SetGameInfo
(const
NETADDR
&ServerAddr, const
char
*pMapName,
bool
AnnounceAddr) = 0;
24
};
25
26
ISteam
*
CreateSteam
();
27
28
#endif
// ENGINE_STEAM_H
IInterface::IInterface
IInterface()
Definition
kernel.h:19
ISteam
Definition
steam.h:9
ISteam::ClearGameInfo
virtual void ClearGameInfo()=0
ISteam::SetGameInfo
virtual void SetGameInfo(const NETADDR &ServerAddr, const char *pMapName, bool AnnounceAddr)=0
ISteam::GetConnectAddress
virtual const NETADDR * GetConnectAddress()=0
ISteam::ClearConnectAddress
virtual void ClearConnectAddress()=0
ISteam::GetPlayerName
virtual const char * GetPlayerName()=0
ISteam::Update
virtual void Update()=0
kernel.h
MACRO_INTERFACE
#define MACRO_INTERFACE(Name)
Definition
kernel.h:25
CreateSteam
ISteam * CreateSteam()
Definition
steam.cpp:144
NETADDR
Definition
types.h:168
types.h
src
engine
steam.h
Generated by
1.18.0