Engine²
Open-source game engine written in C++.
Loading...
Searching...
No Matches
Physics::Resource::VehicleTelemetry Class Reference

#include <VehicleTelemetry.hpp>

Classes

struct  EntityIdHash
struct  EntityIdEqual

Public Member Functions

void SetRPM (Engine::EntityId entity, float rpm)
std::optional< float > GetRPM (Engine::EntityId entity) const
void Clear (Engine::EntityId entity)

Private Attributes

std::unordered_map< Engine::EntityId, float, EntityIdHash, EntityIdEqual_rpmByEntity

Member Function Documentation

◆ Clear()

void Physics::Resource::VehicleTelemetry::Clear ( Engine::EntityId entity)
inline

◆ GetRPM()

std::optional< float > Physics::Resource::VehicleTelemetry::GetRPM ( Engine::EntityId entity) const
inline

◆ SetRPM()

void Physics::Resource::VehicleTelemetry::SetRPM ( Engine::EntityId entity,
float rpm )
inline

Member Data Documentation

◆ _rpmByEntity

std::unordered_map<Engine::EntityId, float, EntityIdHash, EntityIdEqual> Physics::Resource::VehicleTelemetry::_rpmByEntity
private

The documentation for this class was generated from the following file: