R-Type
Distributed multiplayer game engine in C++
Loading...
Searching...
No Matches
EntityCreatedEvent.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** EntityCreatedEvent.hpp
6*/
7
8#pragma once
9
11
12namespace server {
13
18 class EntityCreatedEvent : public IEvent {
19 public:
24 explicit EntityCreatedEvent(int entityId) : _entityId(entityId) {}
25 ~EntityCreatedEvent() override = default;
26
30 int getEntityId() const { return _entityId; }
31
32 private:
34 };
35
36} // namespace server
Triggered when a new entity is created.
int getEntityId() const
Get the ID of the created entity.
EntityCreatedEvent(int entityId)
Construct a new EntityCreatedEvent.
~EntityCreatedEvent() override=default
Base interface for all events.
Definition IEvent.hpp:18