A Type in a Type

Blitz3D Forums/Blitz3D Programming/A Type in a Type

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.

Not like that but you can do ...

Type TypeLight
field Mesh
field x, y, z
end type

type TypeShip
field mesh
field Light.TypeLight
end type

S.ship = new TypeShip
s\Light = new TypeLight
s\Light\x = 10

etc..

The Lights x coord = S\Light\x