1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2025-01-11 03:12:08 +08:00
hl2sdk/public/playerslot.h

31 lines
412 B
C
Raw Normal View History

2023-07-26 14:11:11 +03:00
#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