Skip to content

Commit b52e158

Browse files
committed
send solved/failed on gameControl
1 parent a62c4e7 commit b52e158

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

logic/workflow_controller.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,14 +172,14 @@ def __on_game_time_expired(self):
172172
lwf.execute(self.client)
173173
awf = TTSAudioWorkflow("Play gameover", "gameover.mp3", True)
174174
awf.execute(self.client)
175-
self.client.publish(self.game_control_topic, None, 2, True)
175+
self.client.publish(self.game_control_topic, "FAILED", 2, True)
176176
self.stop()
177177

178178
def __on_workflow_solved(self, name):
179179
print("==================================")
180180
print("Escape room finished successfully!")
181181
print("==================================")
182-
self.client.publish(self.game_control_topic, None, 2, True)
182+
self.client.publish(self.game_control_topic, "SOLVED", 2, True)
183183
self.stop()
184184

185185
def __purge_all_topics(self):

logic/workflow_definition.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def create(self, settings):
9595

9696
ExitWorkflow([
9797
SendTriggerWorkflow("Radio Success", "3/audiocontrol/roomsolved", State.ON),
98-
SendTriggerWorkflow("Play Video End", "env/video", State.ON, data={"path":"/home/ubilab/Videos/PowerGridFailSplit/PowerGridFailSplit_3.mp4"}),
98+
SendTriggerWorkflow("Play Video End", "env/video", State.ON, data={"path":"/home/ubilab/Videos/PowerGridFailSplit/PowerGridFailSplit_3.mp4","loop":False}),
9999
LightControlWorkflow(Location.LOBBYROOM, State.ON, 255, (0, 255, 0)),
100100
LightControlWorkflow(Location.MAINROOM, State.ON, 255, (0, 255, 0)),
101101
LightControlWorkflow(Location.SERVERROOM, State.ON, 255, (0, 255, 0)),

0 commit comments

Comments
 (0)