1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-06 17:25:19 +00:00

Update editor debugger to new remote debugger.

Shared RemoteDebuggerPeer code between client and server.
Move editor profilers inside editor/debugger folder.
This commit is contained in:
Fabio Alessandrelli
2020-03-08 12:21:08 +01:00
parent b8ddaf9c33
commit 3b47eb51e4
12 changed files with 142 additions and 301 deletions

View File

@@ -31,29 +31,19 @@
#ifndef EDITOR_DEBUGGER_CONNECTION_H
#define EDITOR_DEBUGGER_CONNECTION_H
#include "core/debugger/remote_debugger_peer.h"
#include "core/reference.h"
class EditorDebuggerPeer : public Reference {
public:
virtual bool has_message() = 0;
virtual Array get_message() = 0;
virtual Error put_message(const Array p_arr) = 0;
virtual int get_max_message_size() const = 0;
virtual bool is_peer_connected() = 0;
virtual void close() = 0;
};
class EditorDebuggerServer : public Reference {
public:
static EditorDebuggerServer *create_default();
virtual void poll() = 0;
virtual Error start() = 0;
virtual void stop() = 0;
virtual bool is_active() const = 0;
virtual bool is_connection_available() const = 0;
virtual Ref<EditorDebuggerPeer> take_connection() = 0;
virtual Ref<RemoteDebuggerPeer> take_connection() = 0;
};
#endif // EDITOR_DEBUGGER_CONNECTION_H