Signal1
Signal support.
EditorDebuggerSession.swift:257class Signal1
Use the connect(flags:_:)
method to connect to the signal on the container object, and disconnect(_:)
to drop the connection.
You can also await the emitted
property for waiting for a single emission of the signal.
Other members in extension
View members
Hide members
This section is hidden by default because it contains too many (12) members.
Type members
Instance members
var breaked: Signal1
Emitted when the attached remote instance enters a break state. If
canDebug
istrue
, the remote instance will enter the debug loop.var continued: SimpleSignal
Emitted when the attached remote instance exits a break state.
var started: SimpleSignal
Emitted when a remote instance is attached to this session (i.e. the session becomes active).
var stopped: SimpleSignal
Emitted when a remote instance is detached from this session (i.e. the session becomes inactive).
func addSessionTab(control: Control?
) Adds the given
control
to the debug session UI in the debugger bottom panel.func isActive(
) -> Bool Returns
true
if the debug session is currently attached to a remote instance.func isBreaked(
) -> Bool Returns
true
if the attached remote instance is currently in the debug loop.func isDebuggable(
) -> Bool Returns
true
if the attached remote instance can be debugged.func removeSessionTab(control: Control?
) Removes the given
control
from the debug session UI in the debugger bottom panel.func sendMessage(String, data: GArray
) Sends the given
message
to the attached remote instance, optionally passing additionallydata
. SeeEngineDebugger
for how to retrieve those messages.func toggleProfiler(String, enable: Bool, data: GArray
) Toggle the given
profiler
on the attached remote instance, optionally passing additionallydata
. SeeEngineProfiler
for more details.
Citizens in SwiftGodot
Instance members
var emitted: Void
You can await this property to wait for the signal to be emitted once
func connect(flags: Object.ConnectFlags, @escaping (_ canDebug: Bool) -> ()
) -> Object Connects the signal to the specified callback
func disconnect(Object
) Disconnects a signal that was previously connected, the return value from calling
connect(flags:_:)