Structures

If there is something important you think is missing in the current version of ZGameEditor then you can post a feature request here!

Moderator: Moderators

Post Reply
User avatar
Rado1
Posts: 770
Joined: Wed May 05, 2010 12:16 pm

Structures

Post by Rado1 » 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;

User avatar
jonaspm
Posts: 89
Joined: Fri Jul 06, 2012 3:51 pm
Contact:

Post by jonaspm » Thu Oct 31, 2013 12:50 am

This reminds me of TYPES

Post Reply