18 lines
415 B
C
18 lines
415 B
C
#pragma once
|
|
|
|
#include "Event.h"
|
|
#include "Tick.h"
|
|
|
|
#include "entt/entity/entity.hpp"
|
|
|
|
struct WeaponFiredEvent : public Event
|
|
{
|
|
WeaponFiredEvent() = default;
|
|
WeaponFiredEvent(entt::entity shooter, entt::entity target, Tick emittedAt)
|
|
: shooter(shooter), target(target), emittedAt(emittedAt) {}
|
|
|
|
entt::entity shooter = entt::null;
|
|
entt::entity target = entt::null;
|
|
Tick emittedAt = 0;
|
|
};
|