mirror of
https://gitlab.com/hashborgir/d2tweaks-rnd2k.git
synced 2024-12-04 22:55:59 +00:00
29 lines
598 B
C
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);
|
||
|
};
|
||
|
}
|
||
|
}
|
||
|
}
|