R-Type
Distributed multiplayer game engine in C++
Loading...
Searching...
No Matches
EntityDestroyedEvent.hpp
Go to the documentation of this file.
1
/*
2
** EPITECH PROJECT, 2025
3
** Created by hugo on 06/12/2025
4
** File description:
5
** EntityDestroyedEvent.hpp
6
*/
7
8
#pragma once
9
10
#include "
server/Events/IEvent.hpp
"
11
12
namespace
server
{
13
18
class
EntityDestroyedEvent
:
public
IEvent
{
19
public
:
24
explicit
EntityDestroyedEvent
(
int
entityId) :
_entityId
(entityId) {}
25
~EntityDestroyedEvent
()
override
=
default
;
26
30
int
getEntityId
()
const
{
return
_entityId
; }
31
32
private
:
33
int
_entityId
;
34
};
35
36
}
// namespace server
server::EntityDestroyedEvent
Triggered when an entity is destroyed.
Definition
EntityDestroyedEvent.hpp:18
server::EntityDestroyedEvent::EntityDestroyedEvent
EntityDestroyedEvent(int entityId)
Construct a new EntityDestroyedEvent.
Definition
EntityDestroyedEvent.hpp:24
server::EntityDestroyedEvent::_entityId
int _entityId
Definition
EntityDestroyedEvent.hpp:33
server::EntityDestroyedEvent::getEntityId
int getEntityId() const
Get the ID of the destroyed entity.
Definition
EntityDestroyedEvent.hpp:30
server::EntityDestroyedEvent::~EntityDestroyedEvent
~EntityDestroyedEvent() override=default
server::IEvent
Base interface for all events.
Definition
IEvent.hpp:18
server
Definition
CommandContext.hpp:16
IEvent.hpp
server
Events
Core
EntityDestroyedEvent.hpp
Generated by
1.9.8