diff options
| author | Karroffel <therzog@mail.de> | 2017-04-06 01:49:09 +0200 |
|---|---|---|
| committer | Karroffel <therzog@mail.de> | 2017-04-06 01:49:09 +0200 |
| commit | 7d914a289c13f2defd48b8edb9c86ab47046bd5f (patch) | |
| tree | 506415598ce19b31ff4403848851db4a784ed9f0 /modules/dlscript/godot | |
| parent | 71a99d5517f5b4061e66c9e085d7b1922ee9577c (diff) | |
[DLScript] more API fixes
Diffstat (limited to 'modules/dlscript/godot')
| -rw-r--r-- | modules/dlscript/godot/godot_node_path.cpp | 6 | ||||
| -rw-r--r-- | modules/dlscript/godot/godot_node_path.h | 1 |
2 files changed, 7 insertions, 0 deletions
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; diff --git a/modules/dlscript/godot/godot_node_path.h b/modules/dlscript/godot/godot_node_path.h index b322e55d83..04f1e70c1d 100644 --- a/modules/dlscript/godot/godot_node_path.h +++ b/modules/dlscript/godot/godot_node_path.h @@ -16,6 +16,7 @@ typedef struct godot_node_path { #include "../godot.h" void GDAPI godot_node_path_new(godot_node_path *p_np, const godot_string *p_from); +void GDAPI godot_node_path_copy(godot_node_path *p_np, const godot_node_path *p_from); godot_string GDAPI godot_node_path_get_name(const godot_node_path *p_np, const godot_int p_idx); godot_int GDAPI godot_node_path_get_name_count(const godot_node_path *p_np); |