11#include <unordered_map>
34 return std::hash<VT>{}(
static_cast<VT
>(id));
43 std::unordered_map<Engine::EntityId, float, EntityIdHash, EntityIdEqual>
_rpmByEntity;
Definition VehicleTelemetry.hpp:17
void Clear(Engine::EntityId entity)
Definition VehicleTelemetry.hpp:27
std::unordered_map< Engine::EntityId, float, EntityIdHash, EntityIdEqual > _rpmByEntity
Definition VehicleTelemetry.hpp:43
void SetRPM(Engine::EntityId entity, float rpm)
Definition VehicleTelemetry.hpp:19
std::optional< float > GetRPM(Engine::EntityId entity) const
Definition VehicleTelemetry.hpp:20
Definition BodyEntityMap.hpp:12
Represents a unique identifier for an entity in the Engine's entity-component system....
Definition EntityId.hpp:14
Id::ValueType ValueType
The underlying value type of the EntityId, which is the same as Engine::Id::ValueType.
Definition EntityId.hpp:16
Definition VehicleTelemetry.hpp:37
bool operator()(const Engine::EntityId &a, const Engine::EntityId &b) const noexcept
Definition VehicleTelemetry.hpp:38
Definition VehicleTelemetry.hpp:30
size_t operator()(const Engine::EntityId &id) const noexcept
Definition VehicleTelemetry.hpp:31