mirror of
https://github.com/fedddddd/iw5-gsc-utils.git
synced 2025-04-22 05:35:43 +00:00
41 lines
506 B
C++
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" |