enumSubTypes
enumSubTypes
<dedtype>:enumSubTypes(func)
Scorre tutti i tipi figli di <dedtype> e per ciascuno chiama la funzione <func> che riceve come parametro un sottotipo. Solo 1 Livello.
Esempio 106. Esempio <dedtype>:enumSubTypes()
function stampaSottoTipi(tipo)
tipo:enumSubTypes(function(tipo)
print(tipo:name())
end)
end