t7x/src/client/game/game.hpp

40 lines
494 B
C++
Raw Normal View History

#pragma once
//#include "structs.hpp"
namespace game
{
2022-06-02 07:49:43 -04:00
int Conbuf_CleanText(const char* source, char* target);
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"