33#ifndef DVD_UNIT_COMPONENT_H_
34#define DVD_UNIT_COMPONENT_H_
46 bool setUnit(
const Unit_ptr& unit);
48 template <
typename T = Unit>
requires std::is_base_of_v<Unit, T>
49 [[nodiscard]] std::shared_ptr<T>
getUnit() const noexcept
51 return std::static_pointer_cast<T>(_unit);
#define END_COMPONENT(Name)
#define BEGIN_COMPONENT(Name, Enum)
std::shared_ptr< T > getUnit() const noexcept
Handle console commands that start with a forward slash.