2020-08-20 10:17:44 +00:00
|
|
|
#ifndef ENGINE_STEAM_H
|
|
|
|
#define ENGINE_STEAM_H
|
|
|
|
|
|
|
|
#include "kernel.h"
|
|
|
|
|
|
|
|
class ISteam : public IInterface
|
|
|
|
{
|
|
|
|
MACRO_INTERFACE("steam", 0)
|
|
|
|
public:
|
|
|
|
// Returns NULL if the name cannot be determined.
|
|
|
|
virtual const char *GetPlayerName() = 0;
|
2020-09-01 22:32:22 +00:00
|
|
|
|
2020-09-06 11:37:48 +00:00
|
|
|
// Returns NULL if the no server needs to be joined.
|
2020-09-06 15:08:38 +00:00
|
|
|
// Can change while the game is running.
|
|
|
|
virtual const NETADDR *GetConnectAddress() = 0;
|
|
|
|
virtual void ClearConnectAddress() = 0;
|
|
|
|
|
|
|
|
virtual void Update() = 0;
|
2020-09-06 11:37:48 +00:00
|
|
|
|
2020-09-01 22:32:22 +00:00
|
|
|
virtual void ClearGameInfo() = 0;
|
|
|
|
virtual void SetGameInfo(NETADDR ServerAddr, const char *pMapName) = 0;
|
2020-08-20 10:17:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
ISteam *CreateSteam();
|
|
|
|
|
|
|
|
#endif // ENGINE_STEAM_H
|