Skip to content

Commit

Permalink
Add some comments on what needs to be done.
Browse files Browse the repository at this point in the history
  • Loading branch information
Faless committed Aug 24, 2022
1 parent 52d79fc commit 741f131
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions visual_script.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
#include <godot_cpp/core/defs.hpp>
#include <godot_cpp/godot.hpp>
#include <godot_cpp/classes/script.hpp>
#include <godot_cpp/classes/script_language_extension.hpp>

#include <godot_cpp/templates/hash_map.hpp>
#include <godot_cpp/templates/list.hpp>
Expand All @@ -47,6 +48,14 @@ using namespace godot;

#define RES_BASE_EXTENSION(ext)

// TODO This will need more work than just this.
#define ScriptLanguage ScriptLanguageExtension

// TODO ScriptInstance (via C struct: GDNativeExtensionScriptInstanceInfo, see gdnative_interface.h).
class ScriptInstance {

};

#else
#include "core/debugger/engine_debugger.h"
#include "core/debugger/script_debugger.h"
Expand Down Expand Up @@ -172,6 +181,7 @@ class VisualScriptNodeInstance {

virtual int get_working_memory_size() const { return 0; }

// TODO What to do with Callable::CallError ? Add to godot-cpp? Does it make sense? Is it exposed to extensions?
virtual int step(const Variant **p_inputs, Variant **p_outputs, StartMode p_start_mode, Variant *p_working_mem, Callable::CallError &r_error, String &r_error_str) = 0; // Do a step, return which sequence port to go out.

Ref<VisualScriptNode> get_base_node() { return Ref<VisualScriptNode>(base); }
Expand Down

0 comments on commit 741f131

Please sign in to comment.