2022-03-26 19:51:51 +01:00

41 lines
506 B
C++

#pragma once
namespace game
{
template <typename T>
class symbol
{
public:
symbol(const size_t dedi)
: dedi_(reinterpret_cast<T*>(dedi))
{
}
T* get() const
{
return dedi_;
}
void set(const size_t dedi)
{
this->dedi_ = reinterpret_cast<T*>(dedi);
}
operator T* () const
{
return this->get();
}
T* operator->() const
{
return this->get();
}
private:
T* dedi_;
};
void SV_GameDropClient(int clientNum, const char* reason);
}
#include "symbols.hpp"