| 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 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 |
| 29 | |