mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2024-11-08 08:47:17 +01:00
30 lines
1.1 KiB
C++
30 lines
1.1 KiB
C++
#pragma once
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
#include "SqBase.hpp"
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
namespace SqMod {
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
* Retrieve the name associated with a vehicle model identifier.
|
|
*/
|
|
SQMOD_NODISCARD String & GetAutomobileName(uint32_t id);
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
* Modify the name associated with a vehicle model identifier.
|
|
*/
|
|
void SetAutomobileName(uint32_t id, StackStrF & name);
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
* Convert a vehicle model name to a vehicle model identifier.
|
|
*/
|
|
SQMOD_NODISCARD int32_t GetAutomobileID(StackStrF & name);
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
* See whether the specified vehicle model identifier is valid.
|
|
*/
|
|
SQMOD_NODISCARD bool IsAutomobileValid(int32_t id);
|
|
|
|
} // Namespace:: SqMod
|