Files
funnygame/public/enginebridge.h
T
2026-08-28 21:23:08 +03:00

29 lines
785 B
C++

#ifndef ENGINE_BRIDGE_H
#define ENGINE_BRIDGE_H
#include "gamesystem.h"
#include "networkbase.h"
#include "icvar.h"
#include "tier1/interface.h"
struct EngineConsts_t
{
bool m_bIsDedicated;
bool m_bIsSteam;
INetworkBase *(*LaunchLocalBridge)(uint16_t uPort);
INetworkBase *(*LaunchServer)(uint16_t uPort);
INetworkBase *(*ConnectLocalBridge)(uint16_t uPort);
INetworkBase *(*ConnectSteamServer)(uint64_t uServer, uint16_t uPort);
};
abstract_class IEngineBridge: public IGameSystem
{
public:
virtual void ConnectInterface( const char *psz, void *pInterface ) = 0;
};
#define ENGINE_BRIDGE_INTERFACE_VERSION "EngineBridge001"
#define CLIENT_ENGINE_BRIDGE_INTERFACE_VERSION "ClientEngineBridge001"
#define SERVER_ENGINE_BRIDGE_INTERFACE_VERSION "ServerEngineBridge001"
#endif