DDraceNetwork Documentation
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 <
base/types.h
>
5
6
#include "
kernel.h
"
7
8
class
ISteam
:
public
IInterface
9
{
10
MACRO_INTERFACE
(
"steam"
)
11
public
:
12
// Returns NULL if the name cannot be determined.
13
virtual
const
char
*
GetPlayerName
() = 0;
14
15
// Returns NULL 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
Definition
kernel.h:10
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
vector2_base
Definition
vmath.h:15
kernel.h
MACRO_INTERFACE
#define MACRO_INTERFACE(Name)
Definition
kernel.h:25
CreateSteam
ISteam * CreateSteam()
Definition
steam.cpp:142
NETADDR
Definition
types.h:72
types.h
src
engine
steam.h
Generated by
1.9.8