Skip to content

Commit 6f161f1

Browse files
committed
Added 'Stop' message.
Sent from client to server.
1 parent b5fc942 commit 6f161f1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Assets/Scripts/Language/Debugger.gd

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ enum MESSAGE {
3838
SNIPPET_END,
3939
BREAK,
4040
RESUME,
41+
STOP
4142
}
4243

4344
# Emitted when the state of the debugger changes.
@@ -219,6 +220,8 @@ func OnServerDataReceived(Data: String) -> void:
219220
match (Type):
220221
MESSAGE.RESUME:
221222
Runtime.Resume()
223+
MESSAGE.STOP:
224+
Runtime.Stop()
222225

223226

224227
func OnClientDataReceived(Data: String) -> void:
@@ -261,3 +264,7 @@ func OnBreak_Server(Line: int) -> void:
261264
func Resume() -> void:
262265
DispatchToServer(MESSAGE.RESUME, "")
263266

267+
268+
func Stop() -> void:
269+
DispatchToServer(MESSAGE.STOP, "")
270+

0 commit comments

Comments
 (0)