Structures
Posted: Fri Oct 25, 2013 10:29 am
Supporting structures in ZGE would bring more convenient programming. Declaration and usage can be similar to C language, ie.:
Code: Select all
// definition
struct StructureXY{
int field1;
model field2;
...
};
// variable of type structure
struct StructureXY varStruct;
struct StructureXY[100] arrayStruct;
// variable usage
varStruct.field1 = 12;
varStruct.field2.Position.X = 100;
arrayStruct[10].field1 = 8;