1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2025-01-07 09:43:40 +08:00
hl2sdk/public/playerslot.h
2023-09-27 16:54:58 +00:00

31 lines
412 B
C++

#ifndef PLAYERSLOT_H
#define PLAYERSLOT_H
#if _WIN32
#pragma once
#endif
class CPlayerSlot
{
public:
CPlayerSlot(int slot) : m_Data(slot)
{
}
int Get() const
{
return m_Data;
}
bool operator==(const CPlayerSlot &other) const {
return other.m_Data == m_Data;
}
bool operator!=(const CPlayerSlot &other) const {
return other.m_Data != m_Data;
}
private:
int m_Data;
};
#endif // PLAYERSLOT_H