You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
Bind SceneState methods get_path and get_base_scene_state
This commit is contained in:
@@ -10,6 +10,12 @@
|
|||||||
<tutorials>
|
<tutorials>
|
||||||
</tutorials>
|
</tutorials>
|
||||||
<methods>
|
<methods>
|
||||||
|
<method name="get_base_scene_state" qualifiers="const">
|
||||||
|
<return type="SceneState" />
|
||||||
|
<description>
|
||||||
|
Returns the [SceneState] of the scene that this scene inherits from, or [code]null[/code] if it doesn't inherit from any scene.
|
||||||
|
</description>
|
||||||
|
</method>
|
||||||
<method name="get_connection_binds" qualifiers="const">
|
<method name="get_connection_binds" qualifiers="const">
|
||||||
<return type="Array" />
|
<return type="Array" />
|
||||||
<param index="0" name="idx" type="int" />
|
<param index="0" name="idx" type="int" />
|
||||||
@@ -155,6 +161,12 @@
|
|||||||
Returns the type of the node at [param idx].
|
Returns the type of the node at [param idx].
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
|
<method name="get_path" qualifiers="const">
|
||||||
|
<return type="String" />
|
||||||
|
<description>
|
||||||
|
Returns the resource path to the represented [PackedScene].
|
||||||
|
</description>
|
||||||
|
</method>
|
||||||
<method name="is_node_instance_placeholder" qualifiers="const">
|
<method name="is_node_instance_placeholder" qualifiers="const">
|
||||||
<return type="bool" />
|
<return type="bool" />
|
||||||
<param index="0" name="idx" type="int" />
|
<param index="0" name="idx" type="int" />
|
||||||
|
|||||||
@@ -2092,6 +2092,8 @@ Vector<String> SceneState::_get_node_groups(int p_idx) const {
|
|||||||
void SceneState::_bind_methods() {
|
void SceneState::_bind_methods() {
|
||||||
//unbuild API
|
//unbuild API
|
||||||
|
|
||||||
|
ClassDB::bind_method(D_METHOD("get_path"), &SceneState::get_path);
|
||||||
|
ClassDB::bind_method(D_METHOD("get_base_scene_state"), &SceneState::get_base_scene_state);
|
||||||
ClassDB::bind_method(D_METHOD("get_node_count"), &SceneState::get_node_count);
|
ClassDB::bind_method(D_METHOD("get_node_count"), &SceneState::get_node_count);
|
||||||
ClassDB::bind_method(D_METHOD("get_node_type", "idx"), &SceneState::get_node_type);
|
ClassDB::bind_method(D_METHOD("get_node_type", "idx"), &SceneState::get_node_type);
|
||||||
ClassDB::bind_method(D_METHOD("get_node_name", "idx"), &SceneState::get_node_name);
|
ClassDB::bind_method(D_METHOD("get_node_name", "idx"), &SceneState::get_node_name);
|
||||||
|
|||||||
Reference in New Issue
Block a user