2020-03-22 01:45:04 +02:00
|
|
|
#pragma once
|
2015-09-30 03:56:11 +03:00
|
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
2016-02-21 00:25:00 +02:00
|
|
|
#include "SqBase.hpp"
|
2015-09-30 03:56:11 +03:00
|
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
|
|
namespace SqMod {
|
|
|
|
|
2016-05-22 06:20:38 +03:00
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the name associated with a model identifier.
|
|
|
|
*/
|
2021-01-30 08:51:39 +02:00
|
|
|
SQMOD_NODISCARD const SQChar * GetModelName(int32_t id);
|
2016-05-22 06:20:38 +03:00
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Modify the name associated with a model identifier.
|
|
|
|
*/
|
2021-01-30 08:51:39 +02:00
|
|
|
void SetModelName(int32_t id, StackStrF & name);
|
2016-05-22 06:20:38 +03:00
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* See whether the given model identifier is used a weapon model.
|
|
|
|
*/
|
2021-01-30 08:51:39 +02:00
|
|
|
SQMOD_NODISCARD bool IsModelWeapon(int32_t id);
|
2016-05-22 06:20:38 +03:00
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* See whether the given model identifier is an actual weapon model.
|
|
|
|
*/
|
2021-01-30 08:51:39 +02:00
|
|
|
SQMOD_NODISCARD bool IsModelActuallyWeapon(int32_t id);
|
2015-09-30 03:56:11 +03:00
|
|
|
|
|
|
|
} // Namespace:: SqMod
|