161 virtual void Connect(
const char *pAddress,
const char *pPassword =
nullptr) = 0;
175#if defined(CONF_VIDEORECORDER)
176 virtual const char *
DemoPlayer_Render(
const char *pFilename,
int StorageType,
const char *pVideoName,
int SpeedIndex,
bool StartPaused =
false) = 0;
178 virtual void DemoRecorder_Start(
const char *pFilename,
bool WithTimestamp,
int Recorder,
bool Verbose =
false) = 0;
191 virtual void Notify(
const char *pTitle,
const char *pMessage) = 0;
208 virtual int *
GetInput(
int Tick,
int IsDummy = 0)
const = 0;
211 virtual void RconAuth(
const char *pUsername,
const char *pPassword,
bool Dummy) = 0;
214 virtual void Rcon(
const char *pLine) = 0;
235 virtual const void *
SnapFindItem(
int SnapId,
int Type,
int Id)
const = 0;
247 CMsgPacker Packer(T::ms_MsgId,
false, NoTranslate);
248 if(pMsg->Pack(&Packer))
254 int SendPackMsg(
int Conn, T *pMsg,
int Flags,
bool NoTranslate =
false)
256 CMsgPacker Packer(T::ms_MsgId,
false, NoTranslate);
257 if(pMsg->Pack(&Packer))
259 return SendMsg(Conn, &Packer, Flags);
300 virtual void GetSmoothTick(
int *pSmoothTick,
float *pSmoothIntraTick,
float MixAmount) = 0;
329#if defined(CONF_FAMILY_WINDOWS)
330 virtual void ShellRegister() = 0;
331 virtual void ShellUnregister() = 0;
380 virtual
void Echo(const
char *pString) = 0;
Definition: protocol.h:1261
Definition: serverbrowser.h:23
Definition: snapshot.h:31
Definition: translation_context.h:10
int m_Id
Definition: client.h:112
int m_DataSize
Definition: client.h:114
const void * m_pData
Definition: client.h:113
int m_Type
Definition: client.h:111
virtual bool ConnectionProblems() const =0
ELoadingStateDetail LoadingStateDetail() const
Definition: client.h:138
int64_t m_ReconnectTime
Definition: client.h:105
float LocalTime() const
Definition: client.h:156
virtual void DemoRecorder_HandleAutoStart()=0
virtual void OnWindowResize()=0
virtual void RequestDDNetInfo()=0
EMessageBoxType
Definition: client.h:335
@ MESSAGE_BOX_TYPE_INFO
Definition: client.h:338
@ MESSAGE_BOX_TYPE_ERROR
Definition: client.h:336
@ MESSAGE_BOX_TYPE_WARNING
Definition: client.h:337
virtual bool ViewLink(const char *pLink)=0
virtual void AddWarning(const SWarning &Warning)=0
float m_aGameIntraTick[NUM_DUMMIES]
Definition: client.h:89
ELoadingCallbackDetail
Definition: client.h:73
@ LOADING_CALLBACK_DETAIL_DEMO
Definition: client.h:75
@ LOADING_CALLBACK_DETAIL_MAP
Definition: client.h:74
virtual void ServerBrowserUpdate()=0
virtual bool UseTempRconCommands() const =0
EClientState m_State
Definition: client.h:82
float GameTickTime(int Conn) const
Definition: client.h:151
virtual bool RconAuthed() const =0
int PredGameTick(int Conn) const
Definition: client.h:147
int m_Points
Definition: client.h:104
CTranslationContext m_TranslationContext
Definition: client.h:78
void SetLoadingCallback(TLoadingCallback &&Func)
Definition: client.h:142
virtual const char * PlayerName() const =0
int m_aPrevGameTick[NUM_DUMMIES]
Definition: client.h:87
virtual void SnapSetStaticsize(int ItemType, int Size)=0
virtual const void * SnapFindItem(int SnapId, int Type, int Id) const =0
virtual void SnapSetStaticsize7(int ItemType, int Size)=0
TLoadingCallback m_LoadingCallback
Definition: client.h:101
virtual unsigned GetCurrentMapCrc() const =0
virtual void AutoScreenshot_Start()=0
virtual bool DummyConnectingDelayed() const =0
float IntraGameTickSincePrev(int Conn) const
Definition: client.h:150
virtual bool EditorHasUnsavedData() const =0
virtual int SendMsgActive(CMsgPacker *pMsg, int Flags)=0
virtual void GetServerInfo(class CServerInfo *pServerInfo) const =0
virtual bool ReceivingRconCommands() const =0
virtual CChecksumData * ChecksumData()=0
virtual class IDemoRecorder * DemoRecorder(int Recorder)=0
int64_t ReconnectTime() const
Definition: client.h:280
virtual int * GetInput(int Tick, int IsDummy=0) const =0
float RenderFrameTime() const
Definition: client.h:155
float FrameTimeAvg() const
Definition: client.h:158
int PrevGameTick(int Conn) const
Definition: client.h:145
@ SNAP_PREV
Definition: client.h:229
@ SNAP_CURRENT
Definition: client.h:228
@ NUM_SNAPSHOT_TYPES
Definition: client.h:230
EClientState
Definition: client.h:49
@ STATE_RESTARTING
Definition: client.h:56
@ STATE_DEMOPLAYBACK
Definition: client.h:54
@ STATE_OFFLINE
Definition: client.h:50
@ STATE_LOADING
Definition: client.h:52
@ STATE_ONLINE
Definition: client.h:53
@ STATE_QUITTING
Definition: client.h:55
@ STATE_CONNECTING
Definition: client.h:51
virtual void GetGpuInfoString(char(&aGpuInfo)[256])=0
virtual void Disconnect()=0
virtual bool DummyConnected() const =0
virtual IFriends * Foes()=0
virtual bool RaceRecord_IsRecording()=0
int GameTickSpeed() const
Definition: client.h:152
virtual const char * DemoPlayer_Render(const char *pFilename, int StorageType, const char *pVideoName, int SpeedIndex, bool StartPaused=false)=0
virtual void EnterGame(int Conn)=0
virtual void RconAuth(const char *pUsername, const char *pPassword, bool Dummy)=0
virtual void Notify(const char *pTitle, const char *pMessage)=0
virtual void DemoRecorder_Start(const char *pFilename, bool WithTimestamp, int Recorder, bool Verbose=false)=0
virtual void ShowMessageBox(const char *pTitle, const char *pMessage, EMessageBoxType Type=MESSAGE_BOX_TYPE_ERROR)=0
virtual bool DummyAllowed() const =0
virtual bool IsSixup() const =0
int SendPackMsg(int Conn, T *pMsg, int Flags, bool NoTranslate=false)
Definition: client.h:254
int m_aPredTick[NUM_DUMMIES]
Definition: client.h:93
virtual void ToggleWindowVSync()=0
float m_aPredIntraTick[NUM_DUMMIES]
Definition: client.h:94
float m_aGameTickTime[NUM_DUMMIES]
Definition: client.h:90
virtual void GenerateTimeoutSeed()=0
EClientState State() const
Definition: client.h:137
virtual bool ServerCapAnyPlayerFlag() const =0
virtual void SetWindowParams(int FullscreenMode, bool IsBorderless)=0
virtual int UdpConnectivity(int NetType)=0
virtual void DemoSliceEnd()=0
float m_aGameIntraTickSincePrev[NUM_DUMMIES]
Definition: client.h:91
virtual bool DummyConnecting() const =0
virtual void UpdateAndSwap()=0
virtual void Rcon(const char *pLine)=0
virtual void RaceRecord_Start(const char *pFilename)=0
virtual std::optional< SWarning > CurrentWarning()=0
virtual bool ViewFile(const char *pFilename)=0
virtual const char * DummyName()=0
float m_GlobalTime
Definition: client.h:97
virtual void DemoRecorder_UpdateReplayRecorder()=0
virtual void DemoSlice(const char *pDstPath, CLIENTFUNC_FILTER pfnFilter, void *pUser)=0
virtual const NETADDR & ServerAddress() const =0
virtual void Connect(const char *pAddress, const char *pPassword=nullptr)=0
std::function< void(ELoadingCallbackDetail Detail)> TLoadingCallback
Definition: client.h:77
virtual const char * LatestVersion() const =0
virtual const char * ConnectAddressString() const =0
virtual void DemoSliceBegin()=0
virtual const char * DemoPlayer_Play(const char *pFilename, int StorageType)=0
int Points() const
Definition: client.h:279
float m_FrameTimeAvg
Definition: client.h:99
virtual void DummyConnect()=0
void SetReconnectTime(int64_t ReconnectTime)
Definition: client.h:281
int m_aCurGameTick[NUM_DUMMIES]
Definition: client.h:88
virtual float GotRconCommandsPercentage() const =0
virtual int GetPredictionTime()=0
virtual const char * GetCurrentMapPath() const =0
int SendPackMsgActive(T *pMsg, int Flags, bool NoTranslate=false)
Definition: client.h:245
virtual int ConnectNetTypes() const =0
char m_aNews[3000]
Definition: client.h:103
virtual const char * ErrorString() const =0
int64_t StateStartTime() const
Definition: client.h:139
virtual int MapDownloadTotalsize() const =0
float IntraGameTick(int Conn) const
Definition: client.h:148
virtual const char * MapDownloadName() const =0
ELoadingStateDetail
Definition: client.h:64
@ LOADING_STATE_DETAIL_LOADING_DEMO
Definition: client.h:67
@ LOADING_STATE_DETAIL_GETTING_READY
Definition: client.h:69
@ LOADING_STATE_DETAIL_INITIAL
Definition: client.h:65
@ LOADING_STATE_DETAIL_LOADING_MAP
Definition: client.h:66
@ LOADING_STATE_DETAIL_SENDING_READY
Definition: client.h:68
virtual void SwitchWindowScreen(int Index)=0
int64_t m_StateStartTime
Definition: client.h:84
virtual void AutoStatScreenshot_Start()=0
virtual int SendMsg(int Conn, CMsgPacker *pMsg, int Flags)=0
@ CONN_DUMMY
Definition: client.h:120
@ CONN_CONTACT
Definition: client.h:121
@ NUM_CONNS
Definition: client.h:122
@ CONN_MAIN
Definition: client.h:119
ELoadingStateDetail m_LoadingStateDetail
Definition: client.h:83
virtual const char * GetCurrentMap() const =0
virtual int SnapNumItems(int SnapId) const =0
int GameTick(int Conn) const
Definition: client.h:146
virtual void RaceRecord_Stop()=0
@ CONNECTIVITY_CHECKING
Definition: client.h:128
@ CONNECTIVITY_REACHABLE
Definition: client.h:130
@ CONNECTIVITY_UNREACHABLE
Definition: client.h:129
@ CONNECTIVITY_UNKNOWN
Definition: client.h:127
@ CONNECTIVITY_DIFFERING_UDP_TCP_IP_ADDRESSES
Definition: client.h:133
virtual int MapDownloadAmount() const =0
const char * News() const
Definition: client.h:278
float GlobalTime() const
Definition: client.h:157
virtual CSnapItem SnapGetItem(int SnapId, int Index) const =0
float m_RenderFrameTime
Definition: client.h:98
virtual IGraphics::CTextureHandle GetDebugFont() const =0
virtual void AutoCSV_Start()=0
virtual void DummyDisconnect(const char *pReason)=0
virtual SHA256_DIGEST GetCurrentMapSha256() const =0
virtual void GetSmoothTick(int *pSmoothTick, float *pSmoothIntraTick, float MixAmount)=0
float PredIntraGameTick(int Conn) const
Definition: client.h:149
void SetLoadingStateDetail(ELoadingStateDetail LoadingStateDetail)
Definition: client.h:140
float m_LocalTime
Definition: client.h:96
virtual CNetObjHandler * GetNetObjHandler()=0
virtual const char * GetItemName(int Type) const =0
virtual void OnDummySwap()=0
virtual void RenderShutdownMessage()=0
virtual void OnPredict()=0
virtual void OnUpdate()=0
virtual void OnRconLine(const char *pLine)=0
virtual const char * NetVersion7() const =0
virtual void OnRender()=0
virtual void OnMessage(int MsgId, CUnpacker *pUnpacker, int Conn, bool Dummy)=0
virtual void OnDummyDisconnect()=0
virtual protocol7::CNetObjHandler * GetNetObjHandler7()=0
virtual int OnDemoRecSnap7(class CSnapshot *pFrom, class CSnapshot *pTo, int Conn)=0
virtual void OnActivateEditor()=0
virtual void OnConsoleInit()=0
virtual void OnShutdown()=0
virtual void DummyResetInput()=0
virtual int OnSnapInput(int *pData, bool Dummy, bool Force)=0
virtual void ApplySkin7InfoFromSnapObj(const protocol7::CNetObj_De_ClientInfo *pObj, int ClientId)=0
virtual const char * NetVersion() const =0
virtual const char * DDNetVersionStr() const =0
virtual void Echo(const char *pString)=0
virtual void OnConnected()=0
virtual int DDNetVersion() const =0
virtual void SendDummyInfo(bool Start)=0
virtual void OnRconType(bool UsernameReq)=0
virtual void OnEnterGame()=0
virtual int TranslateSnap(class CSnapshot *pSnapDstSix, class CSnapshot *pSnapSrcSeven, int Conn, bool Dummy)=0
virtual const char * Version() const =0
virtual int ClientVersion7() const =0
virtual bool CanDisplayWarning() const =0
virtual void InitializeLanguage()=0
virtual void OnStateChange(int NewState, int OldState)=0
virtual void OnWindowResize()=0
virtual void OnNewSnapshot()=0
virtual void InvalidateSnapshot()=0
Definition: graphics.h:201
IGameClient * CreateGameClient()
Definition: gameclient.cpp:2882
@ RECORDER_REPLAYS
Definition: client.h:28
@ RECORDER_MAX
Definition: client.h:29
@ RECORDER_RACE
Definition: client.h:27
@ RECORDER_AUTO
Definition: client.h:26
@ RECORDER_MANUAL
Definition: client.h:25
bool(* CLIENTFUNC_FILTER)(const void *pData, int DataSize, void *pUser)
Definition: client.h:32
void SnapshotRemoveExtraProjectileInfo(class CSnapshot *pSnap)
Definition: projectile_data.cpp:107
@ NUM_DUMMIES
Definition: enums.h:8
@ SERVER_TICK_SPEED
Definition: protocol.h:80
#define MACRO_INTERFACE(Name)
Definition: kernel.h:25
Definition: protocol7.h:8