15 lines
389 B
Python
15 lines
389 B
Python
|
|
||
|
from abc import ABC
|
||
|
|
||
|
from level.elements.StaticLevelElement import StaticLevelElement
|
||
|
|
||
|
|
||
|
class InputLevelElement(StaticLevelElement, ABC):
|
||
|
def __init__(self, tile: dict, loaded_level):
|
||
|
super().__init__(tile, loaded_level)
|
||
|
|
||
|
if 'emitter_state' in tile:
|
||
|
self.emitter_state = tile['emitter_state'] == 'true'
|
||
|
else:
|
||
|
self.emitter_state = False
|