Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self):
TiledElement.__init__(self)
self.layers = [] # list of all layer types (tile layers + object layers)
self.tilesets = [] # list of TiledTileset objects
self.tilelayers = [] # list of TiledLayer objects
self.objectgroups = [] # list of TiledObjectGroup objects
self.tile_properties = {} # dict of tiles that have additional metadata (properties)
self.filename = None
# this is a work around to tiled's strange way of storing gid's
self.images = [0]
# defaults from the TMX specification
self.version = 0.0
self.orientation = None
self.width = 0
self.height = 0
self.tilewidth = 0
def __init__(self):
TiledElement.__init__(self)
self.objects = []
# defaults from the specification
self.name = None
def __init__(self):
TiledElement.__init__(self)
# defaults from the specification
self.firstgid = 0
self.lastgid = 0
self.name = None
self.tilewidth = 0
self.tileheight = 0
self.spacing = 0
self.margin = 0
def __init__(self):
TiledElement.__init__(self)
# defaults from the specification
self.name = None
self.type = None
self.x = 0
self.y = 0
self.width = 0
self.height = 0
self.gid = 0
def __init__(self):
TiledElement.__init__(self)
self.data = None
# defaults from the specification
self.name = None
self.opacity = 1.0
self.visible = 1