2015-09-30 02:56:11 +02:00
|
|
|
#ifndef _MISC_MODEL_HPP_
|
|
|
|
#define _MISC_MODEL_HPP_
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
2016-02-20 23:25:00 +01:00
|
|
|
#include "SqBase.hpp"
|
2015-09-30 02:56:11 +02:00
|
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
|
|
namespace SqMod {
|
|
|
|
|
2016-05-22 05:20:38 +02:00
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the name associated with a model identifier.
|
|
|
|
*/
|
|
|
|
CSStr GetModelName(Int32 id);
|
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Modify the name associated with a model identifier.
|
|
|
|
*/
|
2019-02-17 16:23:59 +01:00
|
|
|
void SetModelName(Int32 id, StackStrF & name);
|
2016-05-22 05:20:38 +02:00
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* See whether the given model identifier is used a weapon model.
|
|
|
|
*/
|
2016-02-20 23:25:00 +01:00
|
|
|
bool IsModelWeapon(Int32 id);
|
2016-05-22 05:20:38 +02:00
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* See whether the given model identifier is an actual weapon model.
|
|
|
|
*/
|
2016-02-20 23:25:00 +01:00
|
|
|
bool IsModelActuallyWeapon(Int32 id);
|
2015-09-30 02:56:11 +02:00
|
|
|
|
|
|
|
} // Namespace:: SqMod
|
|
|
|
|
|
|
|
#endif // _MISC_MODEL_HPP_
|