mirror of
https://gitlab.com/hashborgir/d2tweaks-rnd2k.git
synced 2024-11-30 20:55:59 +00:00
32 lines
637 B
C
32 lines
637 B
C
|
#pragma once
|
||
|
|
||
|
#include <cstdint>
|
||
|
|
||
|
#include <d2tweaks/server/modules/server_module.h>
|
||
|
|
||
|
//Display damage server side
|
||
|
|
||
|
namespace diablo2 {
|
||
|
namespace structures {
|
||
|
struct inventory;
|
||
|
struct game;
|
||
|
struct unit;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
namespace d2_tweaks {
|
||
|
namespace server {
|
||
|
class server;
|
||
|
|
||
|
namespace modules {
|
||
|
class damage_display final : public server_module {
|
||
|
public:
|
||
|
void init() override;
|
||
|
|
||
|
bool handle_packet(diablo2::structures::game* game, diablo2::structures::unit* player,
|
||
|
common::packet_header* packet) override;
|
||
|
void tick(diablo2::structures::game* game, diablo2::structures::unit* unit) override;
|
||
|
};
|
||
|
}
|
||
|
}
|
||
|
}
|