mirror of
https://github.com/Jous99/F4MP.git
synced 2026-01-13 00:40:53 +01:00
22 lines
477 B
C++
22 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;
|
|
};
|