d2tweaks-rnd2k/include/d2tweaks/client/modules/client_module.h
2024-04-16 21:45:38 -06:00

29 lines
598 B
C++

#pragma once
#include <cstdint>
#define MODULE_INIT(module_name) static d2_tweaks::client::modules::module_name g_instance;
namespace d2_tweaks {
namespace common {
struct packet_header;
}
namespace client {
namespace modules {
class client_module {
public:
virtual ~client_module() = default;
client_module();
virtual void init() = 0;
virtual void init_early() = 0;
virtual void draw_ui();
virtual void tick();
virtual void handle_packet(common::packet_header* packet);
virtual void handle_cs_packet(common::packet_header* packet);
};
}
}
}