Objects and lists

BlitzMax Forums/BlitzMax Beginners Area/Objects and lists

It does seem like an extra layer of complication at first, but really there are only two extra steps, one of which you'll generally only do once:

· Create a list for your objects (once done, that's it);
· Add each object to the relevant list when you create it.

' You do this once...

mylist:TList = CreateList ()

' Then the only extra part on creating new objects is to add to the list...

blah:Example = New Example
ListAddLast mylist, blah