TGC Codebase Backup



Declare a TYPE by Anonymous Coder

27th Apr 2007 1:13
Summary

Simple Type Declaration



Description

Not Much to it.



Code
                                    ` This code was downloaded from The Game Creators
                                    ` It is reproduced here with full permission
                                    ` http://www.thegamecreators.com
                                    
                                    type xyzPosition
X#
Y#
Z#
endtype

set cursor 1,1

global TestPos as xyzPosition

TestPos.X# = 4
TestPos.Y# = 7
TestPos.Z# = 8

print TestPos.X#
print TestPos.Y#
print TestPos.Z#
wait key