mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
* Use CThreadFastMutex instead * Rename ISurface to IDebugSurface to prevent a potential name collision with VGUI's ISurface iface if we ever add it * Fix race condition when setting CPylon::m_HostIP from materialsystem thread, this has been dispatched to the main thread * Marked 'pylon_matchmaking_hostname' FCVAR_MATERIAL_SYSTEM_THREAD as we use it in the server browser panel.
36 lines
688 B
C++
36 lines
688 B
C++
#ifndef ISURFACESYSTEM_H
|
|
#define ISURFACESYSTEM_H
|
|
|
|
class IDebugSurface
|
|
{
|
|
public:
|
|
virtual ~IDebugSurface() { };
|
|
virtual bool Init() = 0;
|
|
virtual void Think() = 0;
|
|
virtual void RunFrame() = 0;
|
|
virtual void RunTask() = 0;
|
|
virtual void DrawSurface() = 0;
|
|
virtual void SetStyleVar() = 0;
|
|
};
|
|
|
|
struct CSuggest
|
|
{
|
|
CSuggest(const string& svName, int nFlags)
|
|
{
|
|
m_svName = svName;
|
|
m_nFlags = nFlags;
|
|
}
|
|
bool operator==(const string& a) const
|
|
{
|
|
return m_svName.compare(a) == 0;
|
|
}
|
|
bool operator<(const CSuggest& a) const
|
|
{
|
|
return m_svName < a.m_svName;
|
|
}
|
|
string m_svName;
|
|
int m_nFlags;
|
|
};
|
|
|
|
#endif // ISURFACESYSTEM_H
|