Sync classref with the current source.

This commit is contained in:
Relintai 2020-04-14 16:59:01 +02:00
parent c752086bdd
commit 17b033e707
11 changed files with 169 additions and 360 deletions

View File

@ -265,6 +265,14 @@
<description>
</description>
</method>
<method name="get_channel_compressed" qualifiers="const">
<return type="PoolByteArray">
</return>
<argument index="0" name="channel_index" type="int">
</argument>
<description>
</description>
</method>
<method name="get_data_index" qualifiers="const">
<return type="int">
</return>
@ -283,6 +291,18 @@
<description>
</description>
</method>
<method name="get_index" qualifiers="const">
<return type="int">
</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="get_lights">
<return type="Array">
</return>
@ -391,6 +411,16 @@
<description>
</description>
</method>
<method name="set_channel_compressed">
<return type="void">
</return>
<argument index="0" name="channel_index" type="int">
</argument>
<argument index="1" name="array" type="PoolByteArray">
</argument>
<description>
</description>
</method>
<method name="set_mesher">
<return type="void">
</return>

View File

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="VoxelChunkBlocky" 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>
</members>
<constants>
</constants>
</class>

View File

@ -199,6 +199,22 @@
<description>
</description>
</method>
<method name="generate_random_ao">
<return type="void">
</return>
<argument index="0" name="seed" type="int">
</argument>
<argument index="1" name="octaves" type="int" default="4">
</argument>
<argument index="2" name="period" type="int" default="30">
</argument>
<argument index="3" name="persistence" type="float" default="0.3">
</argument>
<argument index="4" name="scale_factor" type="float" default="0.6">
</argument>
<description>
</description>
</method>
<method name="get_mesh_rid">
<return type="RID">
</return>
@ -319,23 +335,19 @@
<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>
<member name="build_flags" type="int" setter="set_build_flags" getter="get_build_flags" default="384">
</member>
<member name="current_build_phase" type="int" setter="set_current_build_phase" getter="get_current_build_phase" default="0">
</member>
<member name="current_lod_level" type="int" setter="set_current_lod_level" getter="get_current_lod_level" default="0">
</member>
<member name="generate_lod" type="bool" setter="set_generate_lod" getter="get_generate_lod" default="true">
</member>
<member name="is_build_threaded" type="bool" setter="set_is_build_threaded" getter="get_is_build_threaded" default="false">
</member>
<member name="lod_num" type="int" setter="set_lod_num" getter="get_lod_num" default="3">
</member>
<member name="lod_size" type="int" setter="set_lod_size" getter="get_lod_size" default="1">
</member>
<member name="max_build_phase" type="int" setter="set_max_build_phase" getter="get_max_build_phase" default="9">
</member>
<member name="meshing_bake_lights" type="bool" setter="meshing_set_bake_lights" getter="meshing_get_bake_lights" default="true">
</member>
<member name="meshing_create_collider" type="bool" setter="meshing_set_create_collider" getter="meshing_get_create_collider" default="true">
<member name="max_build_phase" type="int" setter="set_max_build_phase" getter="get_max_build_phase" default="7">
</member>
</members>
<constants>
@ -351,13 +363,9 @@
</constant>
<constant name="BUILD_PHASE_LIGHTS" value="4">
</constant>
<constant name="BUILD_PHASE_PROP_MESH" value="6">
<constant name="BUILD_PHASE_FINALIZE" value="6">
</constant>
<constant name="BUILD_PHASE_PROP_COLLIDER" value="7">
</constant>
<constant name="BUILD_PHASE_FINALIZE" value="8">
</constant>
<constant name="BUILD_PHASE_MAX" value="9">
<constant name="BUILD_PHASE_MAX" value="7">
</constant>
<constant name="VOXEL_CHUNK_STATE_GENERATION_QUEUED" value="1">
</constant>
@ -413,5 +421,23 @@
</constant>
<constant name="MESH_TYPE_INDEX_BODY" value="3">
</constant>
<constant name="BUILD_FLAG_USE_ISOLEVEL" value="1" enum="BuildFlags">
</constant>
<constant name="BUILD_FLAG_USE_LIGHTING" value="2" enum="BuildFlags">
</constant>
<constant name="BUILD_FLAG_USE_AO" value="4" enum="BuildFlags">
</constant>
<constant name="BUILD_FLAG_USE_RAO" value="8" enum="BuildFlags">
</constant>
<constant name="BUILD_FLAG_GENERATE_AO" value="16" enum="BuildFlags">
</constant>
<constant name="BUILD_FLAG_AUTO_GENERATE_RAO" value="32" enum="BuildFlags">
</constant>
<constant name="BUILD_FLAG_BAKE_LIGHTS" value="64" enum="BuildFlags">
</constant>
<constant name="BUILD_FLAG_CREATE_COLLIDER" value="128" enum="BuildFlags">
</constant>
<constant name="BUILD_FLAG_CREATE_LODS" value="256" enum="BuildFlags">
</constant>
</constants>
</class>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="VoxelChunkPropData" inherits="Reference" version="3.2">
<class name="VoxelChunkPropData" inherits="Resource" version="3.2">
<brief_description>
</brief_description>
<description>
@ -7,31 +7,43 @@
<tutorials>
</tutorials>
<methods>
<method name="free_prop">
<return type="void">
</return>
<description>
</description>
</method>
<method name="set_translation_for_chunk">
<return type="void">
</return>
<argument index="0" name="chunk" type="VoxelChunk">
</argument>
<argument index="1" name="local_x" type="int">
</argument>
<argument index="2" name="local_y" type="int">
</argument>
<argument index="3" name="local_z" type="int">
</argument>
<description>
</description>
</method>
<method name="spawn_prop">
<return type="Node">
</return>
<argument index="0" name="parent" type="Node">
</argument>
<description>
</description>
</method>
</methods>
<members>
<member name="light" type="PropDataLight" setter="set_light" getter="get_light">
</member>
<member name="mesh" type="MeshDataResource" setter="set_mesh" getter="get_mesh">
</member>
<member name="mesh_texture" type="Texture" setter="set_mesh_texture" getter="get_mesh_texture">
</member>
<member name="prop" type="PropData" setter="set_prop" getter="get_prop">
</member>
<member name="rotation" type="Vector3" setter="set_rotation" getter="get_rotation" default="Vector3( 0, 0, 0 )">
</member>
<member name="scale" type="Vector3" setter="set_scale" getter="get_scale" default="Vector3( 1, 1, 1 )">
</member>
<member name="scene" type="PackedScene" setter="set_scene" getter="get_scene">
</member>
<member name="snap_axis" type="Vector3" setter="set_snap_axis" getter="get_snap_axis" default="Vector3( 0, -1, 0 )">
<member name="scene_id" type="int" setter="set_scene_id" getter="get_scene_id" default="0">
</member>
<member name="snap_to_mesh" type="bool" setter="set_snap_to_mesh" getter="get_snap_to_mesh" default="false">
<member name="spawned_prop" type="Node" setter="set_spawned_prop" getter="get_spawned_prop">
</member>
<member name="x" type="int" setter="set_x" getter="get_x" default="0">
</member>
<member name="y" type="int" setter="set_y" getter="get_y" default="0">
</member>
<member name="z" type="int" setter="set_z" getter="get_z" default="0">
<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>
</members>
<constants>

View File

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

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="VoxelMesherCubic" inherits="VoxelMesher" version="3.2">
<class name="VoxelMesherCubic" inherits="VoxelMesherDefault" version="3.2">
<brief_description>
</brief_description>
<description>

View File

@ -1,220 +0,0 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="VoxelMesherTransvoxel" inherits="VoxelMesher" 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

@ -59,8 +59,6 @@
</method>
</methods>
<members>
<member name="clutter" type="GroundClutter" setter="set_clutter" getter="get_clutter">
</member>
<member name="id" type="int" setter="set_id" getter="get_id" default="0">
</member>
<member name="mesher_index" type="int" setter="set_mesher_index" getter="get_mesher_index" default="0">

View File

@ -7,6 +7,14 @@
<tutorials>
</tutorials>
<methods>
<method name="_chunk_added" qualifiers="virtual">
<return type="void">
</return>
<argument index="0" name="chunk" type="VoxelChunk">
</argument>
<description>
</description>
</method>
<method name="_create_chunk" qualifiers="virtual">
<return type="VoxelChunk">
</return>
@ -165,6 +173,18 @@
<description>
</description>
</method>
<method name="get_or_create_chunk">
<return type="VoxelChunk">
</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="get_world_area" qualifiers="const">
<return type="WorldArea">
</return>

View File

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

View File

@ -17,14 +17,6 @@
<description>
</description>
</method>
<method name="add_clutter_material">
<return type="void">
</return>
<argument index="0" name="value" type="Material">
</argument>
<description>
</description>
</method>
<method name="add_liquid_material">
<return type="void">
</return>
@ -52,15 +44,7 @@
<method name="add_prop">
<return type="void">
</return>
<argument index="0" name="value" type="PropData">
</argument>
<description>
</description>
</method>
<method name="add_prop_material">
<return type="void">
</return>
<argument index="0" name="value" type="Material">
<argument index="0" name="value" type="PackedScene">
</argument>
<description>
</description>
@ -73,12 +57,6 @@
<description>
</description>
</method>
<method name="clear_clutter_materials">
<return type="void">
</return>
<description>
</description>
</method>
<method name="clear_liquid_materials">
<return type="void">
</return>
@ -97,12 +75,6 @@
<description>
</description>
</method>
<method name="clear_prop_materials">
<return type="void">
</return>
<description>
</description>
</method>
<method name="clear_props">
<return type="void">
</return>
@ -115,14 +87,6 @@
<description>
</description>
</method>
<method name="get_clutter_material">
<return type="Material">
</return>
<argument index="0" name="index" type="int">
</argument>
<description>
</description>
</method>
<method name="get_liquid_material">
<return type="Material">
</return>
@ -147,12 +111,6 @@
<description>
</description>
</method>
<method name="get_num_clutter_materials" qualifiers="const">
<return type="int">
</return>
<description>
</description>
</method>
<method name="get_num_liquid_materials" qualifiers="const">
<return type="int">
</return>
@ -171,12 +129,6 @@
<description>
</description>
</method>
<method name="get_num_prop_materials" qualifiers="const">
<return type="int">
</return>
<description>
</description>
</method>
<method name="get_num_props" qualifiers="const">
<return type="int">
</return>
@ -190,21 +142,13 @@
</description>
</method>
<method name="get_prop">
<return type="PropData">
<return type="PackedScene">
</return>
<argument index="0" name="id" type="int">
</argument>
<description>
</description>
</method>
<method name="get_prop_material">
<return type="Material">
</return>
<argument index="0" name="index" type="int">
</argument>
<description>
</description>
</method>
<method name="get_voxel_surface">
<return type="VoxelSurface">
</return>
@ -219,14 +163,6 @@
<description>
</description>
</method>
<method name="remove_clutter_material">
<return type="void">
</return>
<argument index="0" name="index" type="int">
</argument>
<description>
</description>
</method>
<method name="remove_liquid_material">
<return type="void">
</return>
@ -259,14 +195,6 @@
<description>
</description>
</method>
<method name="remove_prop_material">
<return type="void">
</return>
<argument index="0" name="index" type="int">
</argument>
<description>
</description>
</method>
<method name="remove_surface">
<return type="void">
</return>
@ -275,16 +203,6 @@
<description>
</description>
</method>
<method name="set_clutter_material">
<return type="void">
</return>
<argument index="0" name="index" type="int">
</argument>
<argument index="1" name="value" type="Material">
</argument>
<description>
</description>
</method>
<method name="set_liquid_material">
<return type="void">
</return>
@ -320,17 +238,7 @@
</return>
<argument index="0" name="id" type="int">
</argument>
<argument index="1" name="surface" type="PropData">
</argument>
<description>
</description>
</method>
<method name="set_prop_material">
<return type="void">
</return>
<argument index="0" name="index" type="int">
</argument>
<argument index="1" name="value" type="Material">
<argument index="1" name="surface" type="PackedScene">
</argument>
<description>
</description>
@ -357,23 +265,15 @@
</method>
</methods>
<members>
<member name="clutter_materials" type="Array" setter="set_clutter_materials" getter="get_clutter_materials" default="[ ]">
</member>
<member name="liquid_materials" type="Array" setter="set_liquid_materials" getter="get_liquid_materials" default="[ ]">
</member>
<member name="materials" type="Array" setter="set_materials" getter="get_materials" default="[ ]">
</member>
<member name="prop_materials" type="Array" setter="set_prop_materials" getter="get_prop_materials" default="[ ]">
</member>
</members>
<constants>
<constant name="MATERIAL_INDEX_VOXELS" value="0">
</constant>
<constant name="MATERIAL_INDEX_PROP" value="1">
</constant>
<constant name="MATERIAL_INDEX_LIQUID" value="2">
</constant>
<constant name="MATERIAL_INDEX_CLUTTER" value="3">
<constant name="MATERIAL_INDEX_LIQUID" value="1">
</constant>
</constants>
</class>