DDraceNetwork Docs
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
8class ISteam : public IInterface
9{
11public:
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
27
28#endif // ENGINE_STEAM_H
Definition: kernel.h:10
Definition: steam.h:9
virtual void ClearGameInfo()=0
virtual void SetGameInfo(const NETADDR &ServerAddr, const char *pMapName, bool AnnounceAddr)=0
virtual const NETADDR * GetConnectAddress()=0
virtual void ClearConnectAddress()=0
virtual const char * GetPlayerName()=0
virtual void Update()=0
#define MACRO_INTERFACE(Name)
Definition: kernel.h:25
ISteam * CreateSteam()
Definition: steam.cpp:142
Definition: types.h:67