2019-05-15 14:52:37 +00:00
|
|
|
#include "common.h"
|
2020-04-17 13:31:11 +00:00
|
|
|
|
2019-10-29 23:12:58 +00:00
|
|
|
#include "General.h"
|
2019-05-15 14:52:37 +00:00
|
|
|
#include "ModelIndices.h"
|
|
|
|
|
2020-05-19 19:42:55 +00:00
|
|
|
#define X(name, var) int16 var;
|
2019-05-15 14:52:37 +00:00
|
|
|
MODELINDICES
|
|
|
|
#undef X
|
|
|
|
|
|
|
|
void
|
|
|
|
InitModelIndices(void)
|
|
|
|
{
|
2020-05-19 19:42:55 +00:00
|
|
|
#define X(name, var) var = -1;
|
2019-05-15 14:52:37 +00:00
|
|
|
MODELINDICES
|
|
|
|
#undef X
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
MatchModelString(const char *modelname, int16 id)
|
|
|
|
{
|
2020-05-19 19:42:55 +00:00
|
|
|
#define X(name, var) \
|
2019-10-29 23:12:58 +00:00
|
|
|
if(!CGeneral::faststrcmp(name, modelname)){ \
|
2019-05-15 14:52:37 +00:00
|
|
|
var = id; \
|
|
|
|
return; \
|
|
|
|
}
|
|
|
|
MODELINDICES
|
|
|
|
#undef X
|
|
|
|
}
|
|
|
|
|
2019-10-26 18:25:45 +00:00
|
|
|
void
|
|
|
|
TestModelIndices(void)
|
|
|
|
{
|
|
|
|
;
|
|
|
|
}
|