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