2022-06-02 04:14:44 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
//#include "structs.hpp"
|
|
|
|
|
|
|
|
namespace game
|
|
|
|
{
|
2022-06-02 07:49:43 -04:00
|
|
|
int Conbuf_CleanText(const char* source, char* target);
|
|
|
|
|
2022-06-02 04:14:44 -04:00
|
|
|
template <typename T>
|
|
|
|
class symbol
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
symbol(const size_t address)
|
|
|
|
: address_(reinterpret_cast<T*>(address))
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
T* get() const
|
|
|
|
{
|
|
|
|
return reinterpret_cast<T*>((uint64_t)address_);
|
|
|
|
}
|
|
|
|
|
|
|
|
operator T* () const
|
|
|
|
{
|
|
|
|
return this->get();
|
|
|
|
}
|
|
|
|
|
|
|
|
T* operator->() const
|
|
|
|
{
|
|
|
|
return this->get();
|
|
|
|
}
|
|
|
|
|
|
|
|
private:
|
|
|
|
T* address_;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#include "symbols.hpp"
|