types within types

Blitz3D Forums/Blitz3D Programming/types within types

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

You can also referrence a type within itself as I'm using
Type vector
Field x
Field y
Field z
End Type

Type object
Field pos.vector
Field siz.vector
Field rot.vector
Field next_obj.object
Field prev_obj.object
End Type

Just remember that you need to create new instance of all subtypes. eg. To create an object I would need to use...
Object1.object=New object
Object1\pos=New vector
Object1\siz=New vector
Object1\rot=New vector

...to create vectors for position, size and object.