Files
csgo2_tiny_server_plugin_sy…/csgo2/sdk/player/playerslot.h
2023-10-01 02:28:13 +08:00

24 lines
346 B
C++

#pragma once
#include "../sdk.h"
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;
};