Files
funnygame/public/enginebridge.h
2026-03-05 21:25:59 +02:00

27 lines
643 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"
#endif