mirror of
https://github.com/diamante0018/MW3ServerFreezer.git
synced 2025-04-19 19:52:53 +00:00
25 lines
529 B
C++
25 lines
529 B
C++
#pragma once
|
|
|
|
namespace game {
|
|
template <typename T> class symbol {
|
|
public:
|
|
symbol(const size_t mp) : mp_(reinterpret_cast<T*>(mp)) {}
|
|
|
|
[[nodiscard]] T* get() const { return mp_; }
|
|
|
|
operator T*() const { return this->get(); }
|
|
|
|
T* operator->() const { return this->get(); }
|
|
|
|
private:
|
|
T* mp_;
|
|
};
|
|
|
|
// clang-format off
|
|
extern ScreenPlacement* ScrPlace_GetUnsafeFullPlacement();
|
|
extern void Dvar_SetVariant(dvar_t* dvar, DvarValue value, DvarSetSource source);
|
|
// clang-format on
|
|
} // namespace game
|
|
|
|
#include "symbols.hpp"
|