From 71a99d5517f5b4061e66c9e085d7b1922ee9577c Mon Sep 17 00:00:00 2001 From: Karroffel Date: Thu, 6 Apr 2017 00:21:00 +0200 Subject: [DLScript] removed STL imports --- modules/dlscript/godot/godot_node_path.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'modules/dlscript/godot/godot_node_path.cpp') diff --git a/modules/dlscript/godot/godot_node_path.cpp b/modules/dlscript/godot/godot_node_path.cpp index cc0652c75b..6f1aa6d602 100644 --- a/modules/dlscript/godot/godot_node_path.cpp +++ b/modules/dlscript/godot/godot_node_path.cpp @@ -2,8 +2,6 @@ #include "path_db.h" -#include // why is there no btw? - #ifdef __cplusplus extern "C" { #endif -- cgit v1.2.3 From 7d914a289c13f2defd48b8edb9c86ab47046bd5f Mon Sep 17 00:00:00 2001 From: Karroffel Date: Thu, 6 Apr 2017 01:49:09 +0200 Subject: [DLScript] more API fixes --- modules/dlscript/godot/godot_node_path.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'modules/dlscript/godot/godot_node_path.cpp') diff --git a/modules/dlscript/godot/godot_node_path.cpp b/modules/dlscript/godot/godot_node_path.cpp index 6f1aa6d602..8b79175e44 100644 --- a/modules/dlscript/godot/godot_node_path.cpp +++ b/modules/dlscript/godot/godot_node_path.cpp @@ -20,6 +20,12 @@ void GDAPI godot_node_path_new(godot_node_path *p_np, const godot_string *p_from memnew_placement_custom(np, NodePath, NodePath(*from)); } +void GDAPI godot_node_path_copy(godot_node_path *p_np, const godot_node_path *p_from) { + NodePath *np = (NodePath *)p_np; + NodePath *from = (NodePath *)p_from; + *np = *from; +} + godot_string GDAPI godot_node_path_get_name(const godot_node_path *p_np, const godot_int p_idx) { const NodePath *np = (const NodePath *)p_np; godot_string str; -- cgit v1.2.3