This commit is contained in:
Steffen Illium
2021-07-29 11:02:12 +02:00
parent 8631f11502
commit 042c850588
4 changed files with 22 additions and 5 deletions
+5 -1
View File
@@ -192,12 +192,16 @@ class Door(Entity):
@property
def can_collide(self):
return False
return False if self.is_open else True
@property
def encoding(self):
return 1 if self.is_closed else -1
@property
def access_area(self):
return [node for node in self.connectivity.nodes if node not in range(len(self.connectivity_subgroups))]
def __init__(self, *args, context, closed_on_init=True, auto_close_interval=10):
super(Door, self).__init__(*args)
self._state = c.CLOSED_DOOR