Exemple #1
0
UNIT * InstantiateUnit(LEVEL *pLevel, char * ArchetypeName, VECTOR position)
{
  ARCHETYPE * pArchetype = FindArchetypeByName(pTheGame, ArchetypeName);
  
  UNIT * pUnit = AddUnit(pLevel, pArchetype, ArchetypeName);
  pUnit->pInitTransform->Position = position;
  pUnit->Tag = pUnit->pInitArchetype->Tag;
  InitializeUnit(pUnit);
  pUnit->pInitTransform = NULL;
  pUnit->pInitArchetype = NULL;
  return pUnit;
}
Exemple #2
0
 initeuroconv() {InitializeUnit();}