Added info about 'width' and 'height' object fields export
-ResComp 3.62 (November 2022)
+ResComp 3.63 (December 2022)
Copyright Stephane Dallongeville
https://github.com/Stephane-D/SGDK
@@ -254,10 +254,10 @@ Here's the accepted SGDK type(s) for each 'Tiled' type:
string string (internally char*)
Enum u8, u16, u32
-As you can see, you can also use your own enumerations in which case you need to save them as number instead (not string) and make
+As you can see, you can also use your own enumerations in which case you need to save them as number (not string) and make
sure they perfectly match your C enums (be careful about the allocated type size for your enum, default is u32 with GCC).
-The Tiled objects has some default attributes: 'id', 'type', 'name', 'x' and 'y' that you can use:
+The Tiled objects has some default attributes that you can use:
- 'id' is used internally by rescomp and Tiled and not exported as field, but you can define your own custom 'id' field if you want.
- 'type' is only used as type filter (see the optional 'type_filter' parameter below) and not exported as field but you can define
your own custom 'type' field (as an integer) if needed.
@@ -265,6 +265,8 @@ The Tiled objects has some default attributes: 'id', 'type', 'name', 'x' and 'y'
To enable export of that field you need to add a custom boolean 'exportName' field and set its value to 'true'.
- 'x' and 'y' define the object position on the map and can be exported in any number format.
To enable export of these fields, you need to add a custom boolean 'exportPosition' field and set its value to 'true'.
+- 'width' and 'height' (only for shape objects) define the shape dimensionand can be exported in any number format.
+ To enable export of these fields, you need to add a custom boolean 'exportSize' field and set its value to 'true'.
Syntax:
OBJECTS name tmx_file layer_id field_defs [decl_type [type_filter]]
