mirror of
https://github.com/Jous99/F4MP.git
synced 2026-01-13 00:20:54 +01:00
23 lines
477 B
C
23 lines
477 B
C
|
|
#pragma once
|
||
|
|
|
||
|
|
#include <Events/PacketEvent.h>
|
||
|
|
|
||
|
|
struct World;
|
||
|
|
struct ProjectileLaunchRequest;
|
||
|
|
|
||
|
|
struct CombatService
|
||
|
|
{
|
||
|
|
CombatService(World& aWorld, entt::dispatcher& aDispatcher) noexcept;
|
||
|
|
~CombatService() noexcept = default;
|
||
|
|
|
||
|
|
TP_NOCOPYMOVE(CombatService);
|
||
|
|
|
||
|
|
protected:
|
||
|
|
void OnProjectileLaunchRequest(const PacketEvent<ProjectileLaunchRequest>& acMessage) const noexcept;
|
||
|
|
|
||
|
|
private:
|
||
|
|
World& m_world;
|
||
|
|
|
||
|
|
entt::scoped_connection m_projectileLaunchConnection;
|
||
|
|
};
|