justin-espedal / polydes

Collection of open source Stencyl extensions.
MIT License
8 stars 4 forks source link

Data Conversion #68

Open justin-espedal opened 9 years ago

justin-espedal commented 9 years ago

If a data structures object reads a value as one type, but expects it to be another, attempt to convert the data automatically.

Example: Due to a bug in the extension, typed arrays are often treated as Array<Dynamic>, leading the data to be written out as [value:Type, value:Type, value:Type]:Dynamic instead of [value, value, value]:Type.

Converters can also be useful when a field's type is changed after some structures have already been created with that field.

justin-espedal commented 9 years ago

May not do anything with this, at least not doing this for Dialog Extension 2.0.