import uuid from abc import ABC from level.elements.LevelElement import LevelElement from sprite.StaticSprite import StaticSprite class StaticLevelElement(StaticSprite, LevelElement, ABC): def __init__(self, tile: dict, loaded_level): StaticSprite.__init__(self) LevelElement.__init__(self, tile, loaded_level) if 'id' in tile: self.id = tile['id'] else: self.id = uuid.uuid4()