Collection of types?

BlitzMax Forums/BlitzMax Beginners Area/Collection of types?

JoshK(Posted 2006) [#1]
What is the correct way to do this?
Local entitylist:tentity[]
While parent:tentity<>Null
	entitylist[entities]=parent'crash here
	entities=entities+1
	parent=parent.parent
Wend



Chris C(Posted 2006) [#2]
have you looked at lists?


N(Posted 2006) [#3]
Local entities:TList = New TList
While parent:TEntity <> Null
  entities.AddLast( parent )
  parent = parent.parent
Wend



Chris C(Posted 2006) [#4]
neat isnt it!