2019-08-25 18:54:57 -07:00
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
2020-02-12 08:48:18 -08:00
|
|
|
<class name="VoxelTerrain" inherits="Spatial" version="3.2.1">
|
2019-08-25 18:54:57 -07:00
|
|
|
<brief_description>
|
|
|
|
</brief_description>
|
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
<tutorials>
|
|
|
|
</tutorials>
|
|
|
|
<methods>
|
|
|
|
<method name="block_to_voxel">
|
|
|
|
<return type="Vector3">
|
|
|
|
</return>
|
|
|
|
<argument index="0" name="block_pos" type="Vector3">
|
|
|
|
</argument>
|
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="get_material" qualifiers="const">
|
|
|
|
<return type="Material">
|
|
|
|
</return>
|
|
|
|
<argument index="0" name="id" type="int">
|
|
|
|
</argument>
|
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="get_statistics" qualifiers="const">
|
|
|
|
<return type="Dictionary">
|
|
|
|
</return>
|
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
2020-02-12 08:48:18 -08:00
|
|
|
<method name="get_voxel_tool">
|
|
|
|
<return type="VoxelTool">
|
2019-08-25 18:54:57 -07:00
|
|
|
</return>
|
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="set_material">
|
|
|
|
<return type="void">
|
|
|
|
</return>
|
|
|
|
<argument index="0" name="id" type="int">
|
|
|
|
</argument>
|
|
|
|
<argument index="1" name="material" type="Material">
|
|
|
|
</argument>
|
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="voxel_to_block">
|
|
|
|
<return type="Vector3">
|
|
|
|
</return>
|
|
|
|
<argument index="0" name="voxel_pos" type="Vector3">
|
|
|
|
</argument>
|
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
</methods>
|
|
|
|
<members>
|
|
|
|
<member name="generate_collisions" type="bool" setter="set_generate_collisions" getter="get_generate_collisions" default="true">
|
|
|
|
</member>
|
|
|
|
<member name="stream" type="VoxelStream" setter="set_stream" getter="get_stream">
|
|
|
|
</member>
|
|
|
|
<member name="view_distance" type="int" setter="set_view_distance" getter="get_view_distance" default="128">
|
|
|
|
</member>
|
|
|
|
<member name="viewer_path" type="NodePath" setter="set_viewer_path" getter="get_viewer_path" default="NodePath("")">
|
|
|
|
</member>
|
|
|
|
<member name="voxel_library" type="VoxelLibrary" setter="set_voxel_library" getter="get_voxel_library">
|
|
|
|
</member>
|
|
|
|
</members>
|
2020-08-10 12:57:03 -07:00
|
|
|
<signals>
|
|
|
|
<signal name="block_loaded">
|
|
|
|
<argument index="0" name="block_position" type="Vector3">
|
|
|
|
Position in block coordinates. Use [method block_to_voxel] to obtain its origin in voxels.
|
|
|
|
</argument>
|
|
|
|
<argument index="1" name="voxels" type="VoxelBuffer">
|
|
|
|
</argument>
|
|
|
|
<description>
|
|
|
|
Emitted when a new block is loaded from stream. Note it might be not visible yet.
|
|
|
|
</description>
|
|
|
|
</signal>
|
|
|
|
<signal name="block_unloaded">
|
|
|
|
<argument index="0" name="block_position" type="Vector3">
|
|
|
|
Position in block coordinates. Use [method block_to_voxel] to obtain its origin in voxels.
|
|
|
|
</argument>
|
|
|
|
<argument index="1" name="voxels" type="VoxelBuffer">
|
|
|
|
</argument>
|
|
|
|
<description>
|
|
|
|
Emitted when a block unloaded due to being outside view distance.
|
|
|
|
</description>
|
|
|
|
</signal>
|
|
|
|
</signals>
|
2019-08-25 18:54:57 -07:00
|
|
|
<constants>
|
|
|
|
</constants>
|
|
|
|
</class>
|