15 lines
233 B
C++
15 lines
233 B
C++
#pragma once
|
|
|
|
#include <optional>
|
|
|
|
#include "entt/entity/entity.hpp"
|
|
|
|
struct WeaponComponent
|
|
{
|
|
float damage;
|
|
float range_tiles;
|
|
float fireRateHz;
|
|
float cooldownTicks;
|
|
std::optional<entt::entity> currentTarget;
|
|
};
|