Codec.Tiled.Object
data Object Source #
Constructors
Fields
Used to mark an object as an ellipse
Global tile ID, only if object represents a tile
Height in pixels.
Incremental ID, unique across all objects
String assigned to name field in editor
Used to mark an object as a point
Array of Points, in case the object is a polygon
Array of Points, in case the object is a polyline
Array of Properties
Angle in degrees clockwise
Reference to a template file, in case object is a template instance
Only used for text objects
String assigned to type field in editor
Whether object is shown in editor.
Width in pixels.
X coordinate in pixels
Y coordinate in pixels
Defined in Codec.Tiled.Object
Methods
parseJSON :: Value -> Parser Object #
parseJSONList :: Value -> Parser [Object] #
omittedField :: Maybe Object #
toJSON :: Object -> Value #
toEncoding :: Object -> Encoding #
toJSONList :: [Object] -> Value #
toEncodingList :: [Object] -> Encoding #
omitField :: Object -> Bool #
Associated Types
type Rep Object :: Type -> Type #
from :: Object -> Rep Object x #
to :: Rep Object x -> Object #
showsPrec :: Int -> Object -> ShowS #
show :: Object -> String #
showList :: [Object] -> ShowS #
(==) :: Object -> Object -> Bool #
(/=) :: Object -> Object -> Bool #