When I add this object to the world (gameEngine.addObjectToWorld()) from a my own ServerEngine class, it produces an error at run time in Serializer.writeDataView() due to this STRING attribute:
TypeError: Cannot read property 'length' of undefined, at the file/line: https://github.com/lance-gg/lance/blob/master/src/serialize/Serializer.js#L104
The code run correctly, if I change the type of the attribute to a number type.
Note: it seems that there is a similar problem with LIST attribute.
I created a DynamicObject that contains a STRING netscheme attribute.
When I add this object to the world (gameEngine.addObjectToWorld()) from a my own ServerEngine class, it produces an error at run time in Serializer.writeDataView() due to this STRING attribute:
TypeError: Cannot read property 'length' of undefined
, at the file/line: https://github.com/lance-gg/lance/blob/master/src/serialize/Serializer.js#L104The code run correctly, if I change the type of the attribute to a number type.
Note: it seems that there is a similar problem with LIST attribute.