Swap Type.

Blitz3D Forums/Blitz3D Programming/Swap 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.

Type Gems
	Field x
	Field y
	Field z
	Field model
	Field gem_type
	Field selected
	Field points
	Field life
	Field name$
	Field move%
End Type
global gem.gems = new gems : delete gem


Thats my type. Iv made it global to the full code.

I cant make it an array of types. as this wont fit what im doing.

I need a way to take two of these type instances and swap them and all of their values.

Ta for any suggestions.