INNER CODE UNIT · C
storage
acoto87/war1 · src/war_ai.c:155
WarStateStorage* storage = &manager->stateStorage;
for (s32 i = 0; i < MAX_STATES_PER_TYPE; i++)
{
if (storage->occupied[WAR_STATE_TRAIN][i] &&
storage->train[i].aiCommand == command)
{
return true;
}
}
return false;
}
bool wai_tryCreateUnit(WarContext* context, WarPlayerInfo* aiPlayer, WarAICommand* command)
{
WarUnitType unitType = command->request.unitType;
if (wu_isDudeUnitType(unitType))
{