15 lines
422 B
C++
15 lines
422 B
C++
#pragma once
|
|
|
|
#include <optional>
|
|
|
|
#include "entt/entity/entity.hpp"
|
|
|
|
struct RepairToolComponent
|
|
{
|
|
float repairAmountHp; // HP restored per repair cycle
|
|
int repairIntervalTicks; // cycle period = kTickRateHz / repair-rate (cycles/s); 0 = never
|
|
int cooldownTicksRemaining; // ticks until this tool may start its next cycle
|
|
float range_tiles;
|
|
std::optional<entt::entity> currentTarget;
|
|
};
|