Added missing classes to config.py, and sync classref with the current source.

This commit is contained in:
Relintai 2020-04-18 02:33:05 +02:00
parent 4a2321b161
commit 23c4321d71
11 changed files with 606 additions and 136 deletions

View File

@ -28,7 +28,7 @@ def get_doc_classes():
"VoxelMesherCubic", "VoxelMesherCubic",
"TransvoxelCellData", "TransvoxelCellData",
"VoxelMeshData", "VoxelMeshData",
"VoxelMesherTransvoxel", "VoxelMesherUVTransvoxel",
"VoxelMesher", "VoxelMesher",
"EnvironmentData", "EnvironmentData",
@ -42,6 +42,10 @@ def get_doc_classes():
"VoxelMesherBlocky", "VoxelMesherBlocky",
"VoxelWorldBlocky", "VoxelWorldBlocky",
"VoxelChunkBlocky", "VoxelChunkBlocky",
"VoxelMesherDefault",
"VoxelWorldDefault",
"VoxelChunkBlocky",
] ]
def get_doc_path(): def get_doc_path():

View File

@ -7,22 +7,26 @@
<tutorials> <tutorials>
</tutorials> </tutorials>
<methods> <methods>
<method name="_add_light" qualifiers="virtual"> <method name="_bake_light" qualifiers="virtual">
<return type="void"> <return type="void">
</return> </return>
<argument index="0" name="local_x" type="int"> <argument index="0" name="light" type="VoxelLight">
</argument>
<argument index="1" name="local_y" type="int">
</argument>
<argument index="2" name="local_z" type="int">
</argument>
<argument index="3" name="size" type="int">
</argument>
<argument index="4" name="color" type="Color">
</argument> </argument>
<description> <description>
</description> </description>
</method> </method>
<method name="_bake_lights" qualifiers="virtual">
<return type="void">
</return>
<description>
</description>
</method>
<method name="_clear_baked_lights" qualifiers="virtual">
<return type="void">
</return>
<description>
</description>
</method>
<method name="_create_meshers" qualifiers="virtual"> <method name="_create_meshers" qualifiers="virtual">
<return type="void"> <return type="void">
</return> </return>
@ -79,44 +83,28 @@
<description> <description>
</description> </description>
</method> </method>
<method name="_world_light_added" qualifiers="virtual">
<return type="void">
</return>
<argument index="0" name="light" type="VoxelLight">
</argument>
<description>
</description>
</method>
<method name="_world_light_removed" qualifiers="virtual">
<return type="void">
</return>
<argument index="0" name="light" type="VoxelLight">
</argument>
<description>
</description>
</method>
<method name="_world_transform_changed" qualifiers="virtual"> <method name="_world_transform_changed" qualifiers="virtual">
<return type="void"> <return type="void">
</return> </return>
<description> <description>
</description> </description>
</method> </method>
<method name="add_light">
<return type="void">
</return>
<argument index="0" name="local_x" type="int">
</argument>
<argument index="1" name="local_y" type="int">
</argument>
<argument index="2" name="local_z" type="int">
</argument>
<argument index="3" name="size" type="int">
</argument>
<argument index="4" name="color" type="Color">
</argument>
<description>
</description>
</method>
<method name="add_lights">
<return type="void">
</return>
<argument index="0" name="lights" type="Array">
</argument>
<description>
</description>
</method>
<method name="add_lights_into">
<return type="void">
</return>
<argument index="0" name="lights" type="Array">
</argument>
<description>
</description>
</method>
<method name="add_mesher"> <method name="add_mesher">
<return type="void"> <return type="void">
</return> </return>
@ -133,30 +121,6 @@
<description> <description>
</description> </description>
</method> </method>
<method name="add_prop_light">
<return type="void">
</return>
<argument index="0" name="light" type="VoxelLight">
</argument>
<description>
</description>
</method>
<method name="add_unique_lights_into">
<return type="void">
</return>
<argument index="0" name="lights" type="Array">
</argument>
<description>
</description>
</method>
<method name="add_voxel_light">
<return type="void">
</return>
<argument index="0" name="light" type="VoxelLight">
</argument>
<description>
</description>
</method>
<method name="allocate_channel"> <method name="allocate_channel">
<return type="void"> <return type="void">
</return> </return>
@ -205,34 +169,12 @@
<description> <description>
</description> </description>
</method> </method>
<method name="clear_voxel_lights">
<return type="void">
</return>
<description>
</description>
</method>
<method name="create_meshers"> <method name="create_meshers">
<return type="void"> <return type="void">
</return> </return>
<description> <description>
</description> </description>
</method> </method>
<method name="create_voxel_light">
<return type="void">
</return>
<argument index="0" name="color" type="Color">
</argument>
<argument index="1" name="size" type="int">
</argument>
<argument index="2" name="x" type="int">
</argument>
<argument index="3" name="y" type="int">
</argument>
<argument index="4" name="z" type="int">
</argument>
<description>
</description>
</method>
<method name="dealloc_channel"> <method name="dealloc_channel">
<return type="void"> <return type="void">
</return> </return>
@ -241,6 +183,18 @@
<description> <description>
</description> </description>
</method> </method>
<method name="enter_tree">
<return type="void">
</return>
<description>
</description>
</method>
<method name="exit_tree">
<return type="void">
</return>
<description>
</description>
</method>
<method name="fill_channel"> <method name="fill_channel">
<return type="void"> <return type="void">
</return> </return>
@ -251,12 +205,6 @@
<description> <description>
</description> </description>
</method> </method>
<method name="free_spawn_props">
<return type="void">
</return>
<description>
</description>
</method>
<method name="get_channel_array" qualifiers="const"> <method name="get_channel_array" qualifiers="const">
<return type="PoolByteArray"> <return type="PoolByteArray">
</return> </return>
@ -303,12 +251,6 @@
<description> <description>
</description> </description>
</method> </method>
<method name="get_lights">
<return type="Array">
</return>
<description>
</description>
</method>
<method name="get_mesher" qualifiers="const"> <method name="get_mesher" qualifiers="const">
<return type="VoxelMesher"> <return type="VoxelMesher">
</return> </return>
@ -317,7 +259,7 @@
<description> <description>
</description> </description>
</method> </method>
<method name="get_mesher_count"> <method name="get_mesher_count" qualifiers="const">
<return type="int"> <return type="int">
</return> </return>
<description> <description>
@ -349,7 +291,7 @@
<description> <description>
</description> </description>
</method> </method>
<method name="get_prop_count"> <method name="get_prop_count" qualifiers="const">
<return type="int"> <return type="int">
</return> </return>
<description> <description>
@ -377,6 +319,22 @@
<description> <description>
</description> </description>
</method> </method>
<method name="physics_process">
<return type="void">
</return>
<argument index="0" name="delta" type="float">
</argument>
<description>
</description>
</method>
<method name="process">
<return type="void">
</return>
<argument index="0" name="delta" type="float">
</argument>
<description>
</description>
</method>
<method name="remove_mesher"> <method name="remove_mesher">
<return type="void"> <return type="void">
</return> </return>
@ -393,14 +351,6 @@
<description> <description>
</description> </description>
</method> </method>
<method name="remove_voxel_light">
<return type="void">
</return>
<argument index="0" name="light" type="VoxelLight">
</argument>
<description>
</description>
</method>
<method name="set_channel_array"> <method name="set_channel_array">
<return type="void"> <return type="void">
</return> </return>
@ -517,6 +467,28 @@
<description> <description>
</description> </description>
</method> </method>
<method name="world_light_added">
<return type="void">
</return>
<argument index="0" name="light" type="VoxelLight">
</argument>
<description>
</description>
</method>
<method name="world_light_removed">
<return type="void">
</return>
<argument index="0" name="light" type="VoxelLight">
</argument>
<description>
</description>
</method>
<method name="world_transform_changed">
<return type="void">
</return>
<description>
</description>
</method>
</methods> </methods>
<members> <members>
<member name="channel_count" type="int" setter="set_channel_count" getter="get_channel_count" default="0"> <member name="channel_count" type="int" setter="set_channel_count" getter="get_channel_count" default="0">
@ -529,6 +501,8 @@
</member> </member>
<member name="dirty" type="bool" setter="set_dirty" getter="get_dirty" default="false"> <member name="dirty" type="bool" setter="set_dirty" getter="get_dirty" default="false">
</member> </member>
<member name="is_build_threaded" type="bool" setter="set_is_build_threaded" getter="get_is_build_threaded" default="false">
</member>
<member name="is_generating" type="bool" setter="set_is_generating" getter="get_is_generating" default="false"> <member name="is_generating" type="bool" setter="set_is_generating" getter="get_is_generating" default="false">
</member> </member>
<member name="library" type="VoxelmanLibrary" setter="set_library" getter="get_library"> <member name="library" type="VoxelmanLibrary" setter="set_library" getter="get_library">

View File

@ -39,12 +39,6 @@
<description> <description>
</description> </description>
</method> </method>
<method name="build_deferred">
<return type="void">
</return>
<description>
</description>
</method>
<method name="build_phase"> <method name="build_phase">
<return type="void"> <return type="void">
</return> </return>
@ -63,12 +57,6 @@
<description> <description>
</description> </description>
</method> </method>
<method name="build_prioritized">
<return type="void">
</return>
<description>
</description>
</method>
<method name="clear_mesh_rids"> <method name="clear_mesh_rids">
<return type="void"> <return type="void">
</return> </return>
@ -215,6 +203,20 @@
<description> <description>
</description> </description>
</method> </method>
<method name="get_light">
<return type="VoxelLight">
</return>
<argument index="0" name="index" type="int">
</argument>
<description>
</description>
</method>
<method name="get_light_count" qualifiers="const">
<return type="int">
</return>
<description>
</description>
</method>
<method name="get_mesh_rid"> <method name="get_mesh_rid">
<return type="RID"> <return type="RID">
</return> </return>
@ -341,7 +343,7 @@
</member> </member>
<member name="current_lod_level" type="int" setter="set_current_lod_level" getter="get_current_lod_level" default="0"> <member name="current_lod_level" type="int" setter="set_current_lod_level" getter="get_current_lod_level" default="0">
</member> </member>
<member name="is_build_threaded" type="bool" setter="set_is_build_threaded" getter="get_is_build_threaded" default="false"> <member name="lights_dirty" type="bool" setter="set_lights_dirty" getter="get_lights_dirty" default="false">
</member> </member>
<member name="lod_num" type="int" setter="set_lod_num" getter="get_lod_num" default="3"> <member name="lod_num" type="int" setter="set_lod_num" getter="get_lod_num" default="3">
</member> </member>

View File

@ -37,6 +37,8 @@
</method> </method>
</methods> </methods>
<members> <members>
<member name="owner" type="VoxelChunk" setter="set_owner" getter="get_owner">
</member>
<member name="scene" type="PackedScene" setter="set_scene" getter="get_scene"> <member name="scene" type="PackedScene" setter="set_scene" getter="get_scene">
</member> </member>
<member name="scene_id" type="int" setter="set_scene_id" getter="get_scene_id" default="0"> <member name="scene_id" type="int" setter="set_scene_id" getter="get_scene_id" default="0">

View File

@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="VoxelMesherDefault" inherits="VoxelMesher" version="3.2">
<brief_description>
</brief_description>
<description>
</description>
<tutorials>
</tutorials>
<methods>
</methods>
<members>
<member name="build_flags" type="int" setter="set_build_flags" getter="get_build_flags" default="384">
</member>
<member name="format" type="int" setter="set_format" getter="get_format" override="true" default="18" />
</members>
<constants>
</constants>
</class>

View File

@ -0,0 +1,220 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="VoxelMesherUVTransvoxel" inherits="VoxelMesherDefault" version="3.2">
<brief_description>
</brief_description>
<description>
</description>
<tutorials>
</tutorials>
<methods>
<method name="corner_id_to_vertex" qualifiers="const">
<return type="Vector3">
</return>
<argument index="0" name="index1" type="int">
</argument>
<description>
</description>
</method>
<method name="get_regular_cell_class" qualifiers="const">
<return type="int">
</return>
<argument index="0" name="index" type="int">
</argument>
<description>
</description>
</method>
<method name="get_regular_cell_data" qualifiers="const">
<return type="TransvoxelCellData">
</return>
<argument index="0" name="index" type="int">
</argument>
<description>
</description>
</method>
<method name="get_regular_vertex_data" qualifiers="const">
<return type="int">
</return>
<argument index="0" name="index1" type="int">
</argument>
<argument index="1" name="index2" type="int">
</argument>
<description>
</description>
</method>
<method name="get_regular_vertex_data_first_vertex" qualifiers="const">
<return type="int">
</return>
<argument index="0" name="index1" type="int">
</argument>
<argument index="1" name="index2" type="int">
</argument>
<description>
</description>
</method>
<method name="get_regular_vertex_data_second_vertex" qualifiers="const">
<return type="int">
</return>
<argument index="0" name="index1" type="int">
</argument>
<argument index="1" name="index2" type="int">
</argument>
<description>
</description>
</method>
<method name="get_regular_vertex_direction" qualifiers="const">
<return type="Vector3">
</return>
<argument index="0" name="index1" type="int">
</argument>
<argument index="1" name="index2" type="int">
</argument>
<description>
</description>
</method>
<method name="get_regular_vertex_first_position" qualifiers="const">
<return type="Vector3">
</return>
<argument index="0" name="index1" type="int">
</argument>
<argument index="1" name="index2" type="int">
</argument>
<description>
</description>
</method>
<method name="get_regular_vertex_second_position" qualifiers="const">
<return type="Vector3">
</return>
<argument index="0" name="index1" type="int">
</argument>
<argument index="1" name="index2" type="int">
</argument>
<description>
</description>
</method>
<method name="get_transition_cell_class" qualifiers="const">
<return type="int">
</return>
<argument index="0" name="index" type="int">
</argument>
<description>
</description>
</method>
<method name="get_transition_cell_data" qualifiers="const">
<return type="TransvoxelCellData">
</return>
<argument index="0" name="index" type="int">
</argument>
<description>
</description>
</method>
<method name="get_transition_corner_data" qualifiers="const">
<return type="int">
</return>
<argument index="0" name="index" type="int">
</argument>
<description>
</description>
</method>
<method name="get_transition_vertex_data" qualifiers="const">
<return type="int">
</return>
<argument index="0" name="index1" type="int">
</argument>
<argument index="1" name="index2" type="int">
</argument>
<description>
</description>
</method>
<method name="get_transition_vertex_data_first_vertex" qualifiers="const">
<return type="int">
</return>
<argument index="0" name="index1" type="int">
</argument>
<argument index="1" name="index2" type="int">
</argument>
<description>
</description>
</method>
<method name="get_transition_vertex_data_second_vertex" qualifiers="const">
<return type="int">
</return>
<argument index="0" name="index1" type="int">
</argument>
<argument index="1" name="index2" type="int">
</argument>
<description>
</description>
</method>
<method name="get_transition_vertex_direction" qualifiers="const">
<return type="Vector3">
</return>
<argument index="0" name="index1" type="int">
</argument>
<argument index="1" name="index2" type="int">
</argument>
<description>
</description>
</method>
<method name="get_transition_vertex_first_position" qualifiers="const">
<return type="Vector3">
</return>
<argument index="0" name="index1" type="int">
</argument>
<argument index="1" name="index2" type="int">
</argument>
<description>
</description>
</method>
<method name="get_transition_vertex_second_position" qualifiers="const">
<return type="Vector3">
</return>
<argument index="0" name="index1" type="int">
</argument>
<argument index="1" name="index2" type="int">
</argument>
<description>
</description>
</method>
</methods>
<members>
<member name="format" type="int" setter="set_format" getter="get_format" override="true" default="58" />
<member name="texture_scale" type="int" setter="set_texture_scale" getter="get_texture_scale" default="4">
</member>
</members>
<constants>
<constant name="VOXEL_ENTRY_INDEX_000" value="0" enum="VoxelEntryIndices">
</constant>
<constant name="VOXEL_ENTRY_INDEX_100" value="1" enum="VoxelEntryIndices">
</constant>
<constant name="VOXEL_ENTRY_INDEX_010" value="4" enum="VoxelEntryIndices">
</constant>
<constant name="VOXEL_ENTRY_INDEX_110" value="5" enum="VoxelEntryIndices">
</constant>
<constant name="VOXEL_ENTRY_INDEX_001" value="2" enum="VoxelEntryIndices">
</constant>
<constant name="VOXEL_ENTRY_INDEX_101" value="3" enum="VoxelEntryIndices">
</constant>
<constant name="VOXEL_ENTRY_INDEX_011" value="6" enum="VoxelEntryIndices">
</constant>
<constant name="VOXEL_ENTRY_INDEX_111" value="7" enum="VoxelEntryIndices">
</constant>
<constant name="VOXEL_ENTRIES_SIZE" value="8" enum="VoxelEntryIndices">
</constant>
<constant name="VOXEL_ENTRY_MASK_000" value="1" enum="VoxelEntryMask">
</constant>
<constant name="VOXEL_ENTRY_MASK_100" value="2" enum="VoxelEntryMask">
</constant>
<constant name="VOXEL_ENTRY_MASK_010" value="16" enum="VoxelEntryMask">
</constant>
<constant name="VOXEL_ENTRY_MASK_110" value="32" enum="VoxelEntryMask">
</constant>
<constant name="VOXEL_ENTRY_MASK_001" value="4" enum="VoxelEntryMask">
</constant>
<constant name="VOXEL_ENTRY_MASK_101" value="8" enum="VoxelEntryMask">
</constant>
<constant name="VOXEL_ENTRY_MASK_011" value="64" enum="VoxelEntryMask">
</constant>
<constant name="VOXEL_ENTRY_MASK_111" value="128" enum="VoxelEntryMask">
</constant>
</constants>
</class>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?> <?xml version="1.0" encoding="UTF-8" ?>
<class name="VoxelStructure" inherits="Reference" version="3.2"> <class name="VoxelStructure" inherits="Resource" version="3.2">
<brief_description> <brief_description>
</brief_description> </brief_description>
<description> <description>
@ -15,26 +15,38 @@
<description> <description>
</description> </description>
</method> </method>
<method name="set_position">
<return type="void">
</return>
<argument index="0" name="x" type="int">
</argument>
<argument index="1" name="y" type="int">
</argument>
<argument index="2" name="z" type="int">
</argument>
<description>
</description>
</method>
<method name="write_to_chunk"> <method name="write_to_chunk">
<return type="void"> <return type="void">
</return> </return>
<argument index="0" name="chunk" type="Node"> <argument index="0" name="chunk" type="VoxelChunk">
</argument> </argument>
<description> <description>
</description> </description>
</method> </method>
</methods> </methods>
<members> <members>
<member name="aabb" type="AABB" setter="set_aabb" getter="get_aabb" default="AABB( 0, 0, 0, 0, 0, 0 )"> <member name="chunk_aabb" type="AABB" setter="set_chunk_aabb" getter="get_chunk_aabb" default="AABB( 0, 0, 0, 0, 0, 0 )">
</member>
<member name="position_x" type="int" setter="set_position_x" getter="get_position_x" default="0">
</member>
<member name="position_y" type="int" setter="set_position_y" getter="get_position_y" default="0">
</member>
<member name="position_z" type="int" setter="set_position_z" getter="get_position_z" default="0">
</member> </member>
<member name="use_aabb" type="bool" setter="set_use_aabb" getter="get_use_aabb" default="true"> <member name="use_aabb" type="bool" setter="set_use_aabb" getter="get_use_aabb" default="true">
</member> </member>
<member name="world_position_x" type="int" setter="set_world_position_x" getter="get_world_position_x" default="0">
</member>
<member name="world_position_y" type="int" setter="set_world_position_y" getter="get_world_position_y" default="0">
</member>
<member name="world_position_z" type="int" setter="set_world_position_z" getter="get_world_position_z" default="0">
</member>
</members> </members>
<constants> <constants>
</constants> </constants>

View File

@ -7,6 +7,14 @@
<tutorials> <tutorials>
</tutorials> </tutorials>
<methods> <methods>
<method name="_add_prop" qualifiers="virtual">
<return type="void">
</return>
<argument index="0" name="prop" type="VoxelChunkPropData">
</argument>
<description>
</description>
</method>
<method name="_chunk_added" qualifiers="virtual"> <method name="_chunk_added" qualifiers="virtual">
<return type="void"> <return type="void">
</return> </return>
@ -43,6 +51,14 @@
<description> <description>
</description> </description>
</method> </method>
<method name="_get_channel_index_info" qualifiers="virtual">
<return type="void">
</return>
<argument index="0" name="channel_type" type="int">
</argument>
<description>
</description>
</method>
<method name="_prepare_chunk_for_generation" qualifiers="virtual"> <method name="_prepare_chunk_for_generation" qualifiers="virtual">
<return type="void"> <return type="void">
</return> </return>
@ -65,6 +81,22 @@
<description> <description>
</description> </description>
</method> </method>
<method name="add_light">
<return type="void">
</return>
<argument index="0" name="light" type="VoxelLight">
</argument>
<description>
</description>
</method>
<method name="add_prop">
<return type="void">
</return>
<argument index="0" name="prop" type="VoxelChunkPropData">
</argument>
<description>
</description>
</method>
<method name="add_to_generation"> <method name="add_to_generation">
<return type="void"> <return type="void">
</return> </return>
@ -81,6 +113,24 @@
<description> <description>
</description> </description>
</method> </method>
<method name="add_voxel_structure">
<return type="void">
</return>
<argument index="0" name="structure" type="VoxelStructure">
</argument>
<description>
</description>
</method>
<method name="add_voxel_structure_at_position">
<return type="void">
</return>
<argument index="0" name="structure" type="VoxelStructure">
</argument>
<argument index="1" name="world_position" type="Vector3">
</argument>
<description>
</description>
</method>
<method name="add_world_area"> <method name="add_world_area">
<return type="void"> <return type="void">
</return> </return>
@ -95,7 +145,19 @@
<description> <description>
</description> </description>
</method> </method>
<method name="clear"> <method name="clear_chunks">
<return type="void">
</return>
<description>
</description>
</method>
<method name="clear_lights">
<return type="void">
</return>
<description>
</description>
</method>
<method name="clear_voxel_structures">
<return type="void"> <return type="void">
</return> </return>
<description> <description>
@ -119,6 +181,14 @@
<description> <description>
</description> </description>
</method> </method>
<method name="get_channel_index_info">
<return type="int">
</return>
<argument index="0" name="channel_type" type="int" enum="VoxelWorld.ChannelTypeInfo">
</argument>
<description>
</description>
</method>
<method name="get_chunk"> <method name="get_chunk">
<return type="VoxelChunk"> <return type="VoxelChunk">
</return> </return>
@ -131,6 +201,14 @@
<description> <description>
</description> </description>
</method> </method>
<method name="get_chunk_at_world_position">
<return type="VoxelChunk">
</return>
<argument index="0" name="world_position" type="Vector3">
</argument>
<description>
</description>
</method>
<method name="get_chunk_count" qualifiers="const"> <method name="get_chunk_count" qualifiers="const">
<return type="int"> <return type="int">
</return> </return>
@ -161,18 +239,38 @@
<description> <description>
</description> </description>
</method> </method>
<method name="get_generation_queue_size"> <method name="get_generation_queue_size" qualifiers="const">
<return type="int"> <return type="int">
</return> </return>
<description> <description>
</description> </description>
</method> </method>
<method name="get_generation_size"> <method name="get_generation_size" qualifiers="const">
<return type="int"> <return type="int">
</return> </return>
<description> <description>
</description> </description>
</method> </method>
<method name="get_light">
<return type="VoxelLight">
</return>
<argument index="0" name="index" type="int">
</argument>
<description>
</description>
</method>
<method name="get_light_count" qualifiers="const">
<return type="int">
</return>
<description>
</description>
</method>
<method name="get_lights">
<return type="Array">
</return>
<description>
</description>
</method>
<method name="get_or_create_chunk"> <method name="get_or_create_chunk">
<return type="VoxelChunk"> <return type="VoxelChunk">
</return> </return>
@ -185,6 +283,38 @@
<description> <description>
</description> </description>
</method> </method>
<method name="get_or_create_chunk_at_world_position">
<return type="VoxelChunk">
</return>
<argument index="0" name="world_position" type="Vector3">
</argument>
<description>
</description>
</method>
<method name="get_voxel_at_world_position">
<return type="int">
</return>
<argument index="0" name="world_position" type="Vector3">
</argument>
<argument index="1" name="channel_index" type="int">
</argument>
<description>
</description>
</method>
<method name="get_voxel_structure" qualifiers="const">
<return type="VoxelStructure">
</return>
<argument index="0" name="index" type="int">
</argument>
<description>
</description>
</method>
<method name="get_voxel_structure_count" qualifiers="const">
<return type="int">
</return>
<description>
</description>
</method>
<method name="get_world_area" qualifiers="const"> <method name="get_world_area" qualifiers="const">
<return type="WorldArea"> <return type="WorldArea">
</return> </return>
@ -263,6 +393,30 @@
<description> <description>
</description> </description>
</method> </method>
<method name="remove_light">
<return type="void">
</return>
<argument index="0" name="index" type="int">
</argument>
<description>
</description>
</method>
<method name="remove_voxel_structure">
<return type="void">
</return>
<argument index="0" name="structure" type="VoxelStructure">
</argument>
<description>
</description>
</method>
<method name="remove_voxel_structure_index">
<return type="void">
</return>
<argument index="0" name="index" type="int">
</argument>
<description>
</description>
</method>
<method name="remove_world_area"> <method name="remove_world_area">
<return type="void"> <return type="void">
</return> </return>
@ -271,6 +425,26 @@
<description> <description>
</description> </description>
</method> </method>
<method name="set_lights">
<return type="void">
</return>
<argument index="0" name="chunks" type="Array">
</argument>
<description>
</description>
</method>
<method name="set_voxel_at_world_position">
<return type="void">
</return>
<argument index="0" name="world_position" type="Vector3">
</argument>
<argument index="1" name="data" type="int">
</argument>
<argument index="2" name="channel_index" type="int">
</argument>
<description>
</description>
</method>
</methods> </methods>
<members> <members>
<member name="chunk_size_x" type="int" setter="set_chunk_size_x" getter="get_chunk_size_x" default="16"> <member name="chunk_size_x" type="int" setter="set_chunk_size_x" getter="get_chunk_size_x" default="16">
@ -307,6 +481,8 @@
</member> </member>
<member name="voxel_scale" type="float" setter="set_voxel_scale" getter="get_voxel_scale" default="1.0"> <member name="voxel_scale" type="float" setter="set_voxel_scale" getter="get_voxel_scale" default="1.0">
</member> </member>
<member name="voxel_structures" type="Array" setter="set_voxel_structures" getter="get_voxel_structures" default="[ ]">
</member>
</members> </members>
<signals> <signals>
<signal name="chunk_mesh_generation_finished"> <signal name="chunk_mesh_generation_finished">
@ -321,5 +497,13 @@
</signal> </signal>
</signals> </signals>
<constants> <constants>
<constant name="CHANNEL_TYPE_INFO_TYPE" value="0" enum="ChannelTypeInfo">
</constant>
<constant name="CHANNEL_TYPE_INFO_ISOLEVEL" value="1" enum="ChannelTypeInfo">
</constant>
<constant name="CHANNEL_TYPE_INFO_LIQUID" value="2" enum="ChannelTypeInfo">
</constant>
<constant name="CHANNEL_TYPE_INFO_LIQUID_LEVEL" value="3" enum="ChannelTypeInfo">
</constant>
</constants> </constants>
</class> </class>

View File

@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="VoxelWorldDefault" inherits="VoxelWorld" version="3.2">
<brief_description>
</brief_description>
<description>
</description>
<tutorials>
</tutorials>
<methods>
<method name="_update_lods" qualifiers="virtual">
<return type="void">
</return>
<description>
</description>
</method>
<method name="update_lods">
<return type="void">
</return>
<description>
</description>
</method>
</methods>
<members>
<member name="build_flags" type="int" setter="set_build_flags" getter="get_build_flags" default="384">
</member>
<member name="data_margin_end" type="int" setter="set_data_margin_end" getter="get_data_margin_end" override="true" default="1" />
<member name="data_margin_start" type="int" setter="set_data_margin_start" getter="get_data_margin_start" override="true" default="1" />
<member name="lod_update_interval" type="float" setter="set_lod_update_interval" getter="get_lod_update_interval" default="0.5">
</member>
</members>
<constants>
</constants>
</class>

View File

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="VoxelmanLevelGeneratorFlat" inherits="VoxelmanLevelGenerator" version="3.2">
<brief_description>
</brief_description>
<description>
</description>
<tutorials>
</tutorials>
<methods>
</methods>
<members>
<member name="channel_map" type="Dictionary" setter="set_channel_map" getter="get_channel_map" default="{}">
</member>
<member name="floor_position" type="int" setter="set_floor_position" getter="get_floor_position" default="0">
</member>
</members>
<constants>
</constants>
</class>

View File

@ -265,6 +265,8 @@
</method> </method>
</methods> </methods>
<members> <members>
<member name="initialized" type="bool" setter="set_initialized" getter="get_initialized">
</member>
<member name="liquid_materials" type="Array" setter="set_liquid_materials" getter="get_liquid_materials" default="[ ]"> <member name="liquid_materials" type="Array" setter="set_liquid_materials" getter="get_liquid_materials" default="[ ]">
</member> </member>
<member name="materials" type="Array" setter="set_materials" getter="get_materials" default="[ ]"> <member name="materials" type="Array" setter="set_materials" getter="get_materials" default="[ ]">