Sync classref with current source. Also add VoxelChunkCubic to config.py.

This commit is contained in:
Relintai 2020-06-20 23:32:55 +02:00
parent 469ca4cc5e
commit 014e6919c8
10 changed files with 280 additions and 27 deletions

View File

@ -51,6 +51,7 @@ def get_doc_classes():
"VoxelMesherCubic",
"VoxelWorldCubic",
"VoxelChunkCubic",
"VoxelMesherDefault",
"VoxelWorldDefault",

View File

@ -0,0 +1,59 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="MarchingCubesCellData" inherits="Reference" version="3.2">
<brief_description>
</brief_description>
<description>
</description>
<tutorials>
</tutorials>
<methods>
<method name="get_triangle_count" qualifiers="const">
<return type="int">
</return>
<description>
</description>
</method>
<method name="get_vertex_count" qualifiers="const">
<return type="int">
</return>
<description>
</description>
</method>
<method name="get_vertex_index" qualifiers="const">
<return type="int">
</return>
<argument index="0" name="index" type="int">
</argument>
<description>
</description>
</method>
<method name="set_triangle_count">
<return type="void">
</return>
<argument index="0" name="value" type="int">
</argument>
<description>
</description>
</method>
<method name="set_vertex_count">
<return type="void">
</return>
<argument index="0" name="value" type="int">
</argument>
<description>
</description>
</method>
<method name="set_vertex_index">
<return type="void">
</return>
<argument index="0" name="index" type="int">
</argument>
<argument index="1" name="value" type="int">
</argument>
<description>
</description>
</method>
</methods>
<constants>
</constants>
</class>

View File

@ -311,6 +311,12 @@
<description>
</description>
</method>
<method name="is_in_tree" qualifiers="const">
<return type="bool">
</return>
<description>
</description>
</method>
<method name="merge_mesh_array" qualifiers="const">
<return type="Array">
</return>
@ -499,11 +505,11 @@
</member>
<member name="data_size_z" type="int" setter="set_data_size_z" getter="get_data_size_z" default="0">
</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">
</member>
<member name="is_build_threaded" type="bool" setter="set_is_build_threaded" getter="get_is_build_threaded" default="false">
<member name="is_build_threaded" type="bool" setter="set_is_build_threaded" getter="get_is_build_threaded">
</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">
</member>
<member name="library" type="VoxelmanLibrary" setter="set_library" getter="get_library">
</member>
@ -523,7 +529,7 @@
</member>
<member name="size_z" type="int" setter="set_size_z" getter="get_size_z" default="0">
</member>
<member name="state" type="int" setter="set_state" getter="get_state" default="0">
<member name="state" type="int" setter="set_state" getter="get_state">
</member>
<member name="transform" type="Transform" setter="set_transform" getter="get_transform" default="Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 )">
</member>

View File

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="VoxelChunkCubic" inherits="VoxelChunkDefault" version="3.2">
<brief_description>
</brief_description>
<description>
</description>
<tutorials>
</tutorials>
<methods>
</methods>
<members>
<member name="data_channel" type="PoolByteArray" setter="set_channel_compressed" getter="get_channel_compressed" default="PoolByteArray( )">
</member>
<member name="isolevel_channel" type="PoolByteArray" setter="set_channel_compressed" getter="get_channel_compressed" default="PoolByteArray( )">
</member>
</members>
<constants>
</constants>
</class>

View File

@ -335,21 +335,21 @@
</method>
</methods>
<members>
<member name="active_build_phase_type" type="int" setter="set_active_build_phase_type" getter="get_active_build_phase_type" enum="VoxelChunkDefault.ActiveBuildPhaseType" default="0">
<member name="active_build_phase_type" type="int" setter="set_active_build_phase_type" getter="get_active_build_phase_type" enum="VoxelChunkDefault.ActiveBuildPhaseType">
</member>
<member name="build_flags" type="int" setter="set_build_flags" getter="get_build_flags" default="384">
<member name="build_flags" type="int" setter="set_build_flags" getter="get_build_flags">
</member>
<member name="current_build_phase" type="int" setter="set_current_build_phase" getter="get_current_build_phase" default="0">
<member name="current_build_phase" type="int" setter="set_current_build_phase" getter="get_current_build_phase">
</member>
<member name="current_lod_level" type="int" setter="set_current_lod_level" getter="get_current_lod_level" default="0">
</member>
<member name="lights_dirty" type="bool" setter="set_lights_dirty" getter="get_lights_dirty" default="false">
<member name="lights_dirty" type="bool" setter="set_lights_dirty" getter="get_lights_dirty">
</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">
</member>
<member name="lod_size" type="int" setter="set_lod_size" getter="get_lod_size" default="1">
<member name="lod_size" type="int" setter="set_lod_size" getter="get_lod_size">
</member>
<member name="max_build_phase" type="int" setter="set_max_build_phase" getter="get_max_build_phase" default="7">
<member name="max_build_phase" type="int" setter="set_max_build_phase" getter="get_max_build_phase">
</member>
</members>
<constants>

View File

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="VoxelChunkMarchingCubes" inherits="VoxelChunkDefault" version="3.2">
<brief_description>
</brief_description>
<description>
</description>
<tutorials>
</tutorials>
<methods>
</methods>
<members>
<member name="data_channel" type="PoolByteArray" setter="set_channel_compressed" getter="get_channel_compressed" default="PoolByteArray( )">
</member>
<member name="isolevel_channel" type="PoolByteArray" setter="set_channel_compressed" getter="get_channel_compressed" default="PoolByteArray( )">
</member>
</members>
<constants>
</constants>
</class>

View File

@ -15,14 +15,6 @@
<description>
</description>
</method>
<method name="_add_chunk_liquid" qualifiers="virtual">
<return type="void">
</return>
<argument index="0" name="chunk" type="VoxelChunk">
</argument>
<description>
</description>
</method>
<method name="_add_mesher" qualifiers="virtual">
<return type="void">
</return>
@ -55,14 +47,6 @@
<description>
</description>
</method>
<method name="add_chunk_liquid">
<return type="void">
</return>
<argument index="0" name="chunk" type="VoxelChunk">
</argument>
<description>
</description>
</method>
<method name="add_color">
<return type="void">
</return>

View File

@ -0,0 +1,136 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="VoxelMesherMarchingCubes" 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="MarchingCubesCellData">
</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>
</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

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="VoxelWorldCubic" inherits="VoxelWorldDefault" version="3.2">
<brief_description>
</brief_description>
<description>
</description>
<tutorials>
</tutorials>
<methods>
</methods>
<constants>
</constants>
</class>

View File

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="VoxelWorldMarchingCubes" inherits="VoxelWorldDefault" version="3.2">
<brief_description>
</brief_description>
<description>
</description>
<tutorials>
</tutorials>
<methods>
</methods>
<members>
<member name="data_margin_end" type="int" setter="set_data_margin_end" getter="get_data_margin_end" override="true" default="2" />
</members>
<constants>
</constants>
</class>