Build the object a level describes, with the class or factory registered for
it (registerObjectClass, registerObjectFactory): by the
description's class, then its name. This is what the Tiled loader calls
for each object of a map; a reader for another level format calls it for its
own. With nothing registered under either, the description is taken as a
Tiled object's: a text, a tile, or a shape with a static body of the
description's width and height. Use hasObjectFactory first to do
otherwise.
Parameters
settings: object
the object's description: x, y, z, width, height, name, class, and whatever else its class reads
Optionalmap: object
the map the object is read from, handed to a factory
Build the object a level describes, with the class or factory registered for it (registerObjectClass, registerObjectFactory): by the description's
class, then itsname. This is what the Tiled loader calls for each object of a map; a reader for another level format calls it for its own. With nothing registered under either, the description is taken as a Tiled object's: a text, a tile, or a shape with a static body of the description'swidthandheight. Use hasObjectFactory first to do otherwise.