2023-03-27 11:46:03 +02:00
|
|
|
|
|
|
|
from abc import ABC
|
|
|
|
|
2023-03-27 18:37:30 +02:00
|
|
|
from level.elements.static.StaticLevelElement import StaticLevelElement
|
2023-03-27 11:46:03 +02:00
|
|
|
|
|
|
|
|
|
|
|
class InputLevelElement(StaticLevelElement, ABC):
|
2023-03-29 15:40:15 +02:00
|
|
|
def __init__(self, tile: dict, loaded_level, level_screen_manager: 'LevelScreenManager'):
|
|
|
|
super().__init__(tile, loaded_level, level_screen_manager)
|
2023-03-27 11:46:03 +02:00
|
|
|
|
|
|
|
if 'emitter_state' in tile:
|
|
|
|
self.emitter_state = tile['emitter_state'] == 'true'
|
|
|
|
else:
|
|
|
|
self.emitter_state = False
|