Doc setup.

This commit is contained in:
Relintai 2019-12-25 14:08:20 +01:00
parent 8e02dcb9e8
commit ac18664fae
40 changed files with 3144 additions and 496 deletions

View File

@ -8,4 +8,48 @@ def configure(env):
pass
def get_doc_classes():
return [
"WorldArea",
"GroundClutterFoliage",
"GroundClutter",
"VoxelmanQueue",
"VoxelmanUnboundedQueue",
"VoxelLight",
"VoxelmanLevelGenerator",
"VoxelSurfaceMerger",
"VoxelSurfaceSimple",
"VoxelSurface",
"VoxelmanLibraryMerger",
"VoxelmanLibrarySimple",
"VoxelmanLibrary",
"VoxelCubePoints",
"VoxelMesherCubic",
"TransvoxelCellData",
"VoxelMeshData",
"VoxelMesherTransvoxel",
"VoxelMesher",
"PropDataEntity",
"PropDataEntry",
"PropDataLight",
"PropDataMesh",
"PropDataProp",
"PropDataScene",
"PropData",
"EnvironmentData",
"VoxelChunkPropData",
"VoxelChunk",
"VoxelStructure",
"VoxelWorld",
]
def get_doc_path():
return "doc_classes"

View File

@ -0,0 +1,109 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="EnvironmentData" inherits="Resource" category="Core" version="3.2">
<brief_description>
</brief_description>
<description>
</description>
<tutorials>
</tutorials>
<methods>
<method name="_setup" qualifiers="virtual">
<return type="void">
</return>
<argument index="0" name="world_environment" type="WorldEnvironment">
</argument>
<argument index="1" name="primary_light" type="DirectionalLight">
</argument>
<argument index="2" name="secondary_light" type="DirectionalLight">
</argument>
<description>
</description>
</method>
<method name="get_color">
<return type="Color">
</return>
<argument index="0" name="index" type="int">
</argument>
<description>
</description>
</method>
<method name="get_energy">
<return type="float">
</return>
<argument index="0" name="index" type="int">
</argument>
<description>
</description>
</method>
<method name="get_indirect_energy">
<return type="float">
</return>
<argument index="0" name="index" type="int">
</argument>
<description>
</description>
</method>
<method name="set_color">
<return type="void">
</return>
<argument index="0" name="index" type="int">
</argument>
<argument index="1" name="value" type="Color">
</argument>
<description>
</description>
</method>
<method name="set_energy">
<return type="void">
</return>
<argument index="0" name="index" type="int">
</argument>
<argument index="1" name="value" type="float">
</argument>
<description>
</description>
</method>
<method name="set_indirect_energy">
<return type="void">
</return>
<argument index="0" name="index" type="int">
</argument>
<argument index="1" name="value" type="float">
</argument>
<description>
</description>
</method>
<method name="setup">
<return type="void">
</return>
<argument index="0" name="world_environment" type="Node">
</argument>
<argument index="1" name="primary_light" type="Node">
</argument>
<argument index="2" name="secondary_light" type="Node">
</argument>
<description>
</description>
</method>
</methods>
<members>
<member name="environment" type="Environment" setter="set_environment" getter="get_environment">
</member>
<member name="primary_light_color" type="Color" setter="set_color" getter="get_color" default="Color( 1, 1, 1, 1 )">
</member>
<member name="primary_light_energy" type="float" setter="set_energy" getter="get_energy" default="1.0">
</member>
<member name="primary_light_indirect_energy" type="float" setter="set_indirect_energy" getter="get_indirect_energy" default="1.0">
</member>
<member name="secondary_light_color" type="Color" setter="set_color" getter="get_color" default="Color( 1, 1, 1, 1 )">
</member>
<member name="secondary_light_energy" type="float" setter="set_energy" getter="get_energy" default="1.0">
</member>
<member name="secondary_light_indirect_energy" type="float" setter="set_indirect_energy" getter="get_indirect_energy" default="1.0">
</member>
</members>
<constants>
<constant name="LIGHT_COUNT" value="2">
</constant>
</constants>
</class>

View File

@ -1,225 +0,0 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="GridMap" inherits="Spatial" category="Core" version="3.2">
<brief_description>
Node for 3D tile-based maps.
</brief_description>
<description>
GridMap lets you place meshes on a grid interactively. It works both from the editor and can help you create in-game level editors.
GridMaps use a [MeshLibrary] which contain a list of tiles: meshes with materials plus optional collisions and extra elements.
A GridMap contains a collection of cells. Each grid cell refers to a [MeshLibrary] item. All cells in the map have the same dimensions.
A GridMap is split into a sparse collection of octants for efficient rendering and physics processing. Every octant has the same dimensions and can contain several cells.
</description>
<tutorials>
<link>https://docs.godotengine.org/en/latest/tutorials/3d/using_gridmaps.html</link>
</tutorials>
<methods>
<method name="clear">
<return type="void">
</return>
<description>
Clear all cells.
</description>
</method>
<method name="clear_baked_meshes">
<return type="void">
</return>
<description>
</description>
</method>
<method name="get_bake_mesh_instance">
<return type="RID">
</return>
<argument index="0" name="idx" type="int">
</argument>
<description>
</description>
</method>
<method name="get_bake_meshes">
<return type="Array">
</return>
<description>
</description>
</method>
<method name="get_cell_item" 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>
The [MeshLibrary] item index located at the grid-based X, Y and Z coordinates. If the cell is empty, [constant INVALID_CELL_ITEM] will be returned.
</description>
</method>
<method name="get_cell_item_orientation" 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>
The orientation of the cell at the grid-based X, Y and Z coordinates. -1 is returned if the cell is empty.
</description>
</method>
<method name="get_collision_layer_bit" qualifiers="const">
<return type="bool">
</return>
<argument index="0" name="bit" type="int">
</argument>
<description>
</description>
</method>
<method name="get_collision_mask_bit" qualifiers="const">
<return type="bool">
</return>
<argument index="0" name="bit" type="int">
</argument>
<description>
</description>
</method>
<method name="get_meshes">
<return type="Array">
</return>
<description>
Array of [Transform] and [Mesh] references corresponding to the non empty cells in the grid. The transforms are specified in world space.
</description>
</method>
<method name="get_used_cells" qualifiers="const">
<return type="Array">
</return>
<description>
Array of [Vector3] with the non empty cell coordinates in the grid map.
</description>
</method>
<method name="make_baked_meshes">
<return type="void">
</return>
<argument index="0" name="gen_lightmap_uv" type="bool" default="false">
</argument>
<argument index="1" name="lightmap_uv_texel_size" type="float" default="0.1">
</argument>
<description>
</description>
</method>
<method name="map_to_world" qualifiers="const">
<return type="Vector3">
</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="resource_changed">
<return type="void">
</return>
<argument index="0" name="resource" type="Resource">
</argument>
<description>
</description>
</method>
<method name="set_cell_item">
<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>
<argument index="3" name="item" type="int">
</argument>
<argument index="4" name="orientation" type="int" default="0">
</argument>
<description>
Set the mesh index for the cell referenced by its grid-based X, Y and Z coordinates.
A negative item index will clear the cell.
Optionally, the item's orientation can be passed.
</description>
</method>
<method name="set_clip">
<return type="void">
</return>
<argument index="0" name="enabled" type="bool">
</argument>
<argument index="1" name="clipabove" type="bool" default="true">
</argument>
<argument index="2" name="floor" type="int" default="0">
</argument>
<argument index="3" name="axis" type="int" enum="Vector3.Axis" default="0">
</argument>
<description>
</description>
</method>
<method name="set_collision_layer_bit">
<return type="void">
</return>
<argument index="0" name="bit" type="int">
</argument>
<argument index="1" name="value" type="bool">
</argument>
<description>
</description>
</method>
<method name="set_collision_mask_bit">
<return type="void">
</return>
<argument index="0" name="bit" type="int">
</argument>
<argument index="1" name="value" type="bool">
</argument>
<description>
</description>
</method>
<method name="world_to_map" qualifiers="const">
<return type="Vector3">
</return>
<argument index="0" name="pos" type="Vector3">
</argument>
<description>
</description>
</method>
</methods>
<members>
<member name="cell_center_x" type="bool" setter="set_center_x" getter="get_center_x">
If [code]true[/code], grid items are centered on the X axis.
</member>
<member name="cell_center_y" type="bool" setter="set_center_y" getter="get_center_y">
If [code]true[/code], grid items are centered on the Y axis.
</member>
<member name="cell_center_z" type="bool" setter="set_center_z" getter="get_center_z">
If [code]true[/code], grid items are centered on the Z axis.
</member>
<member name="cell_octant_size" type="int" setter="set_octant_size" getter="get_octant_size">
The size of each octant measured in number of cells. This applies to all three axis.
</member>
<member name="cell_scale" type="float" setter="set_cell_scale" getter="get_cell_scale">
</member>
<member name="cell_size" type="Vector3" setter="set_cell_size" getter="get_cell_size">
The dimensions of the grid's cells.
</member>
<member name="collision_layer" type="int" setter="set_collision_layer" getter="get_collision_layer">
</member>
<member name="collision_mask" type="int" setter="set_collision_mask" getter="get_collision_mask">
</member>
<member name="mesh_library" type="MeshLibrary" setter="set_mesh_library" getter="get_mesh_library">
The assigned [MeshLibrary].
</member>
<member name="theme" type="MeshLibrary" setter="set_theme" getter="get_theme">
Deprecated, use [member mesh_library] instead.
</member>
</members>
<constants>
<constant name="INVALID_CELL_ITEM" value="-1">
Invalid cell item that can be used in [method set_cell_item] to clear cells (or represent an empty cell in [method get_cell_item]).
</constant>
</constants>
</class>

View File

@ -0,0 +1,89 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="GroundClutter" inherits="Resource" category="Core" version="3.2">
<brief_description>
</brief_description>
<description>
</description>
<tutorials>
</tutorials>
<methods>
<method name="_add_meshes_to" qualifiers="virtual">
<return type="void">
</return>
<argument index="0" name="mesher" type="VoxelMesher">
</argument>
<argument index="1" name="chunk" type="VoxelChunk">
</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="_add_textures_to" qualifiers="virtual">
<return type="void">
</return>
<argument index="0" name="packer" type="TexturePacker">
</argument>
<description>
</description>
</method>
<method name="_should_spawn" qualifiers="virtual">
<return type="bool">
</return>
<argument index="0" name="chunk" type="VoxelChunk">
</argument>
<argument index="1" name="x" type="int">
</argument>
<argument index="2" name="y" type="int">
</argument>
<argument index="3" name="z" type="int">
</argument>
<description>
</description>
</method>
<method name="add_meshes_to">
<return type="void">
</return>
<argument index="0" name="mesher" type="VoxelMesher">
</argument>
<argument index="1" name="chunk" type="Node">
</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="add_textures_to">
<return type="void">
</return>
<argument index="0" name="packer" type="TexturePacker">
</argument>
<description>
</description>
</method>
<method name="should_spawn">
<return type="bool">
</return>
<argument index="0" name="chunk" type="Node">
</argument>
<argument index="1" name="x" type="int">
</argument>
<argument index="2" name="y" type="int">
</argument>
<argument index="3" name="z" type="int">
</argument>
<description>
</description>
</method>
</methods>
<constants>
</constants>
</class>

View File

@ -0,0 +1,43 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="GroundClutterFoliage" inherits="GroundClutter" category="Core" version="3.2">
<brief_description>
</brief_description>
<description>
</description>
<tutorials>
</tutorials>
<methods>
<method name="add_texture">
<return type="void">
</return>
<argument index="0" name="texture" type="Texture">
</argument>
<description>
</description>
</method>
<method name="get_texture">
<return type="Texture">
</return>
<argument index="0" name="index" type="int">
</argument>
<description>
</description>
</method>
<method name="get_texture_count" qualifiers="const">
<return type="int">
</return>
<description>
</description>
</method>
<method name="remove_texture">
<return type="void">
</return>
<argument index="0" name="index" type="int">
</argument>
<description>
</description>
</method>
</methods>
<constants>
</constants>
</class>

109
doc_classes/PropData.xml Normal file
View File

@ -0,0 +1,109 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="PropData" inherits="Resource" category="Core" version="3.2">
<brief_description>
</brief_description>
<description>
</description>
<tutorials>
</tutorials>
<methods>
<method name="add_meshes_into">
<return type="void">
</return>
<argument index="0" name="mesher" type="VoxelMesher">
</argument>
<argument index="1" name="texture_packer" type="TexturePacker">
</argument>
<argument index="2" name="parent_transform" type="Transform">
</argument>
<argument index="3" name="snap_spatial" type="Node">
</argument>
<description>
</description>
</method>
<method name="add_prop">
<return type="void">
</return>
<argument index="0" name="prop" type="PropDataEntry">
</argument>
<description>
</description>
</method>
<method name="add_prop_lights_into">
<return type="void">
</return>
<argument index="0" name="chunk" type="Node">
</argument>
<argument index="1" name="parent_transform" type="Transform">
</argument>
<argument index="2" name="allow_snap" type="bool">
</argument>
<description>
</description>
</method>
<method name="add_textures_into">
<return type="void">
</return>
<argument index="0" name="texture_packer" type="TexturePacker">
</argument>
<description>
</description>
</method>
<method name="get_next_snapped_prop_transform">
<return type="Transform">
</return>
<argument index="0" name="spatial" type="Node">
</argument>
<argument index="1" name="parent_transform" type="Transform">
</argument>
<argument index="2" name="snap_to_mesh" type="bool">
</argument>
<argument index="3" name="snap_axis" type="Vector3">
</argument>
<description>
</description>
</method>
<method name="get_prop" qualifiers="const">
<return type="PropDataEntry">
</return>
<argument index="0" name="index" type="int">
</argument>
<description>
</description>
</method>
<method name="get_prop_count" qualifiers="const">
<return type="int">
</return>
<description>
</description>
</method>
<method name="remove_prop">
<return type="void">
</return>
<argument index="0" name="index" type="int">
</argument>
<description>
</description>
</method>
<method name="set_prop">
<return type="void">
</return>
<argument index="0" name="index" type="int">
</argument>
<argument index="1" name="spell" type="PropDataEntry">
</argument>
<description>
</description>
</method>
</methods>
<members>
<member name="props" type="Array" setter="set_props" getter="get_props" default="[ ]">
</member>
<member name="snap_axis" type="Vector3" setter="set_snap_axis" getter="get_snap_axis" default="Vector3( 0, -1, 0 )">
</member>
<member name="snap_to_mesh" type="bool" setter="set_snap_to_mesh" getter="get_snap_to_mesh" default="false">
</member>
</members>
<constants>
</constants>
</class>

View File

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="PropDataEntity" inherits="PropDataEntry" category="Core" version="3.2">
<brief_description>
</brief_description>
<description>
</description>
<tutorials>
</tutorials>
<methods>
</methods>
<members>
<member name="entity_data_id" type="int" setter="set_entity_data_id" getter="get_entity_data_id" default="0">
</member>
<member name="level" type="int" setter="set_level" getter="get_level" default="1">
</member>
</members>
<constants>
</constants>
</class>

View File

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="PropDataEntry" inherits="Resource" category="Core" version="3.2">
<brief_description>
</brief_description>
<description>
</description>
<tutorials>
</tutorials>
<methods>
</methods>
<members>
<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>
</constants>
</class>

View File

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="PropDataLight" inherits="PropDataEntry" category="Core" version="3.2">
<brief_description>
</brief_description>
<description>
</description>
<tutorials>
</tutorials>
<methods>
</methods>
<members>
<member name="light_color" type="Color" setter="set_light_color" getter="get_light_color" default="Color( 0, 0, 0, 1 )">
</member>
<member name="light_size" type="int" setter="set_light_size" getter="get_light_size" default="5">
</member>
</members>
<constants>
</constants>
</class>

View File

@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="PropDataMesh" inherits="PropDataEntry" category="Core" version="3.2">
<brief_description>
</brief_description>
<description>
</description>
<tutorials>
</tutorials>
<methods>
</methods>
<members>
<member name="mesh" type="MeshDataResource" setter="set_mesh" getter="get_mesh">
</member>
<member name="snap_axis" type="Vector3" setter="set_snap_axis" getter="get_snap_axis" default="Vector3( 0, 1, 0 )">
</member>
<member name="snap_to_mesh" type="bool" setter="set_snap_to_mesh" getter="get_snap_to_mesh" default="true">
</member>
<member name="texture" type="Texture" setter="set_texture" getter="get_texture">
</member>
</members>
<constants>
</constants>
</class>

View File

@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="PropDataProp" inherits="PropDataEntry" category="Core" version="3.2">
<brief_description>
</brief_description>
<description>
</description>
<tutorials>
</tutorials>
<methods>
</methods>
<members>
<member name="prop" type="PropData" setter="set_prop" getter="get_prop">
</member>
<member name="snap_axis" type="Vector3" setter="set_snap_axis" getter="get_snap_axis" default="Vector3( 0, 1, 0 )">
</member>
<member name="snap_to_mesh" type="bool" setter="set_snap_to_mesh" getter="get_snap_to_mesh" default="false">
</member>
</members>
<constants>
</constants>
</class>

View File

@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="PropDataScene" inherits="PropDataEntry" category="Core" version="3.2">
<brief_description>
</brief_description>
<description>
</description>
<tutorials>
</tutorials>
<methods>
</methods>
<members>
<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>
<member name="snap_to_mesh" type="bool" setter="set_snap_to_mesh" getter="get_snap_to_mesh" default="true">
</member>
</members>
<constants>
</constants>
</class>

View File

@ -0,0 +1,59 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="TransvoxelCellData" inherits="Reference" category="Core" 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>

737
doc_classes/VoxelChunk.xml Normal file
View File

@ -0,0 +1,737 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="VoxelChunk" inherits="Spatial" category="Core" version="3.2">
<brief_description>
</brief_description>
<description>
</description>
<tutorials>
</tutorials>
<methods>
<method name="_build_phase" qualifiers="virtual">
<return type="void">
</return>
<argument index="0" name="phase" type="int">
</argument>
<description>
</description>
</method>
<method name="_create_mesh" qualifiers="virtual">
<return type="void">
</return>
<description>
</description>
</method>
<method name="_create_mesher" qualifiers="virtual">
<return type="void">
</return>
<description>
</description>
</method>
<method name="_draw_debug_voxel_lights" qualifiers="virtual">
<return type="void">
</return>
<argument index="0" name="debug_drawer" type="ImmediateGeometry">
</argument>
<description>
</description>
</method>
<method name="_process_props" qualifiers="virtual">
<return type="void">
</return>
<description>
</description>
</method>
<method name="_prop_added" qualifiers="virtual">
<return type="void">
</return>
<argument index="0" name="prop" type="VoxelChunkPropData">
</argument>
<description>
</description>
</method>
<method name="_setup_channels" qualifiers="virtual">
<return type="void">
</return>
<description>
</description>
</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_prop">
<return type="void">
</return>
<argument index="0" name="prop" type="VoxelChunkPropData">
</argument>
<description>
</description>
</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">
<return type="void">
</return>
<argument index="0" name="channel_index" type="int">
</argument>
<argument index="1" name="default_value" type="int">
</argument>
<description>
</description>
</method>
<method name="allocate_clutter_mesh">
<return type="void">
</return>
<description>
</description>
</method>
<method name="allocate_liquid_mesh">
<return type="void">
</return>
<description>
</description>
</method>
<method name="allocate_main_mesh">
<return type="void">
</return>
<description>
</description>
</method>
<method name="allocate_prop_colliders">
<return type="void">
</return>
<description>
</description>
</method>
<method name="allocate_prop_mesh">
<return type="void">
</return>
<description>
</description>
</method>
<method name="bake_light">
<return type="void">
</return>
<argument index="0" name="light" type="VoxelLight">
</argument>
<description>
</description>
</method>
<method name="bake_lights">
<return type="void">
</return>
<description>
</description>
</method>
<method name="build">
<return type="void">
</return>
<description>
</description>
</method>
<method name="build_collider">
<return type="void">
</return>
<description>
</description>
</method>
<method name="build_phase">
<return type="void">
</return>
<description>
</description>
</method>
<method name="build_prop_collider">
<return type="void">
</return>
<description>
</description>
</method>
<method name="build_prop_meshes">
<return type="void">
</return>
<description>
</description>
</method>
<method name="clear">
<return type="void">
</return>
<description>
</description>
</method>
<method name="clear_baked_lights">
<return type="void">
</return>
<description>
</description>
</method>
<method name="clear_props">
<return type="void">
</return>
<description>
</description>
</method>
<method name="clear_voxel_lights">
<return type="void">
</return>
<description>
</description>
</method>
<method name="create_colliders">
<return type="void">
</return>
<description>
</description>
</method>
<method name="create_debug_immediate_geometry">
<return type="void">
</return>
<description>
</description>
</method>
<method name="create_mesher">
<return type="void">
</return>
<description>
</description>
</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">
<return type="void">
</return>
<argument index="0" name="channel_index" type="int">
</argument>
<description>
</description>
</method>
<method name="draw_cross_voxels">
<return type="void">
</return>
<argument index="0" name="pos" type="Vector3">
</argument>
<description>
</description>
</method>
<method name="draw_cross_voxels_fill">
<return type="void">
</return>
<argument index="0" name="pos" type="Vector3">
</argument>
<argument index="1" name="fill" type="float">
</argument>
<description>
</description>
</method>
<method name="draw_debug_voxel_lights">
<return type="void">
</return>
<description>
</description>
</method>
<method name="draw_debug_voxels">
<return type="void">
</return>
<argument index="0" name="pos" type="int">
</argument>
<argument index="1" name="color" type="Color" default="Color( 1, 1, 1, 1 )">
</argument>
<description>
</description>
</method>
<method name="fill_channel">
<return type="void">
</return>
<argument index="0" name="value" type="int">
</argument>
<argument index="1" name="channel_index" type="int">
</argument>
<description>
</description>
</method>
<method name="finalize_mesh">
<return type="void">
</return>
<description>
</description>
</method>
<method name="free_chunk">
<return type="void">
</return>
<description>
</description>
</method>
<method name="free_clutter_mesh">
<return type="void">
</return>
<description>
</description>
</method>
<method name="free_debug_immediate_geometry">
<return type="void">
</return>
<description>
</description>
</method>
<method name="free_liquid_mesh">
<return type="void">
</return>
<description>
</description>
</method>
<method name="free_main_mesh">
<return type="void">
</return>
<description>
</description>
</method>
<method name="free_prop_colliders">
<return type="void">
</return>
<description>
</description>
</method>
<method name="free_prop_mesh">
<return type="void">
</return>
<description>
</description>
</method>
<method name="free_spawn_props">
<return type="void">
</return>
<description>
</description>
</method>
<method name="generate_ao">
<return type="void">
</return>
<description>
</description>
</method>
<method name="get_body_rid">
<return type="RID">
</return>
<description>
</description>
</method>
<method name="get_clutter_mesh_instance_rid">
<return type="RID">
</return>
<description>
</description>
</method>
<method name="get_clutter_mesh_rid">
<return type="RID">
</return>
<description>
</description>
</method>
<method name="get_data_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_data_size" qualifiers="const">
<return type="int">
</return>
<description>
</description>
</method>
<method name="get_lights">
<return type="Array">
</return>
<description>
</description>
</method>
<method name="get_liquid_mesh_instance_rid">
<return type="RID">
</return>
<description>
</description>
</method>
<method name="get_liquid_mesh_rid">
<return type="RID">
</return>
<description>
</description>
</method>
<method name="get_margin_end" qualifiers="const">
<return type="int">
</return>
<description>
</description>
</method>
<method name="get_margin_start" qualifiers="const">
<return type="int">
</return>
<description>
</description>
</method>
<method name="get_mesh_instance_rid">
<return type="RID">
</return>
<description>
</description>
</method>
<method name="get_mesh_rid">
<return type="RID">
</return>
<description>
</description>
</method>
<method name="get_position" qualifiers="const">
<return type="Vector3">
</return>
<description>
</description>
</method>
<method name="get_prop">
<return type="VoxelChunkPropData">
</return>
<argument index="0" name="index" type="int">
</argument>
<description>
</description>
</method>
<method name="get_prop_body_rid">
<return type="RID">
</return>
<description>
</description>
</method>
<method name="get_prop_count">
<return type="int">
</return>
<description>
</description>
</method>
<method name="get_prop_mesh_instance_rid">
<return type="RID">
</return>
<description>
</description>
</method>
<method name="get_prop_mesh_rid">
<return type="RID">
</return>
<description>
</description>
</method>
<method name="get_prop_shape_rid">
<return type="RID">
</return>
<description>
</description>
</method>
<method name="get_shape_rid">
<return type="RID">
</return>
<description>
</description>
</method>
<method name="get_size" qualifiers="const">
<return type="Vector3">
</return>
<description>
</description>
</method>
<method name="get_voxel" 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>
<argument index="3" name="channel_index" type="int">
</argument>
<description>
</description>
</method>
<method name="next_phase">
<return type="void">
</return>
<description>
</description>
</method>
<method name="process_props">
<return type="void">
</return>
<description>
</description>
</method>
<method name="remove_colliders">
<return type="void">
</return>
<description>
</description>
</method>
<method name="remove_prop">
<return type="void">
</return>
<argument index="0" name="index" type="int">
</argument>
<description>
</description>
</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_count">
<return type="void">
</return>
<argument index="0" name="count" type="int">
</argument>
<description>
</description>
</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="set_size">
<return type="void">
</return>
<argument index="0" name="size_x" type="int">
</argument>
<argument index="1" name="size_y" type="int">
</argument>
<argument index="2" name="size_z" type="int">
</argument>
<argument index="3" name="margin_start" type="int" default="0">
</argument>
<argument index="4" name="margin_end" type="int" default="0">
</argument>
<description>
</description>
</method>
<method name="set_voxel">
<return type="void">
</return>
<argument index="0" name="value" type="int">
</argument>
<argument index="1" name="x" type="int">
</argument>
<argument index="2" name="y" type="int">
</argument>
<argument index="3" name="z" type="int">
</argument>
<argument index="4" name="channel_index" type="int">
</argument>
<description>
</description>
</method>
<method name="setup_channels">
<return type="void">
</return>
<description>
</description>
</method>
<method name="validate_channel_data_position" qualifiers="const">
<return type="bool">
</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>
</methods>
<members>
<member name="current_build_phase" type="int" setter="set_current_build_phase" getter="get_current_build_phase" default="0">
</member>
<member name="data_size_x" type="int" setter="" getter="get_data_size_x" default="0">
</member>
<member name="data_size_y" type="int" setter="" getter="get_data_size_y" default="0">
</member>
<member name="data_size_z" type="int" setter="" getter="get_data_size_z" default="0">
</member>
<member name="dirty" type="bool" setter="set_dirty" getter="get_dirty" default="false">
</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>
<member name="library" type="VoxelmanLibrary" setter="set_library" getter="get_library">
</member>
<member name="lod_size" type="int" setter="set_lod_size" getter="get_lod_size" default="1">
</member>
<member name="mesher" type="VoxelMesher" setter="set_mesher" getter="get_mesher">
</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>
<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 name="size_x" type="int" setter="" getter="get_size_x" default="0">
</member>
<member name="size_y" type="int" setter="" getter="get_size_y" default="0">
</member>
<member name="size_z" type="int" setter="" getter="get_size_z" default="0">
</member>
<member name="state" type="int" setter="set_state" getter="get_state" default="0">
</member>
<member name="voxel_scale" type="float" setter="set_voxel_scale" getter="get_voxel_scale" default="1.0">
</member>
<member name="voxel_world" type="VoxelWorld" setter="set_voxel_world" getter="get_voxel_world">
</member>
</members>
<signals>
<signal name="mesh_generation_finished">
<argument index="0" name="chunk" type="VoxelChunk">
</argument>
<description>
</description>
</signal>
</signals>
<constants>
<constant name="BUILD_PHASE_DONE" value="0">
</constant>
<constant name="BUILD_PHASE_SETUP" value="1">
</constant>
<constant name="BUILD_PHASE_TERRARIN_MESH_SETUP" value="2">
</constant>
<constant name="BUILD_PHASE_TERRARIN_MESH_COLLIDER" value="3">
</constant>
<constant name="BUILD_PHASE_LIGHTS" value="4">
</constant>
<constant name="BUILD_PHASE_TERRARIN_MESH" value="5">
</constant>
<constant name="BUILD_PHASE_PROP_MESH" value="6">
</constant>
<constant name="BUILD_PHASE_PROP_COLLIDER" value="7">
</constant>
<constant name="BUILD_PHASE_FINALIZE" value="10">
</constant>
<constant name="BUILD_PHASE_MAX" value="11">
</constant>
<constant name="VOXEL_CHUNK_STATE_OK" value="0">
</constant>
<constant name="VOXEL_CHUNK_STATE_GENERATION_QUEUED" value="1">
</constant>
<constant name="VOXEL_CHUNK_STATE_GENERATION" value="2">
</constant>
<constant name="VOXEL_CHUNK_STATE_MESH_GENERATION_QUEUED" value="3">
</constant>
<constant name="VOXEL_CHUNK_STATE_MESH_GENERATION" value="4">
</constant>
<constant name="VOXEL_CHUNK_STATE_MAX" value="5">
</constant>
<constant name="DEFAULT_CHANNEL_TYPE" value="0" enum="DefaultChannels">
</constant>
<constant name="DEFAULT_CHANNEL_ISOLEVEL" value="1" enum="DefaultChannels">
</constant>
<constant name="DEFAULT_CHANNEL_LIGHT_COLOR_R" value="2" enum="DefaultChannels">
</constant>
<constant name="DEFAULT_CHANNEL_LIGHT_COLOR_G" value="3" enum="DefaultChannels">
</constant>
<constant name="DEFAULT_CHANNEL_LIGHT_COLOR_B" value="4" enum="DefaultChannels">
</constant>
<constant name="DEFAULT_CHANNEL_AO" value="5" enum="DefaultChannels">
</constant>
<constant name="DEFAULT_CHANNEL_RANDOM_AO" value="6" enum="DefaultChannels">
</constant>
<constant name="DEFAULT_CHANNEL_LIQUID_TYPES" value="7" enum="DefaultChannels">
</constant>
<constant name="DEFAULT_CHANNEL_LIQUID_FILL" value="8" enum="DefaultChannels">
</constant>
<constant name="DEFAULT_CHANNEL_LIQUID_FLOW" value="9" enum="DefaultChannels">
</constant>
<constant name="MAX_DEFAULT_CHANNELS" value="10" enum="DefaultChannels">
</constant>
</constants>
</class>

View File

@ -0,0 +1,39 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="VoxelChunkPropData" inherits="Reference" category="Core" version="3.2">
<brief_description>
</brief_description>
<description>
</description>
<tutorials>
</tutorials>
<methods>
</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>
<member name="snap_to_mesh" type="bool" setter="set_snap_to_mesh" getter="get_snap_to_mesh" default="false">
</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>
</members>
<constants>
</constants>
</class>

View File

@ -0,0 +1,369 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="VoxelCubePoints" inherits="Reference" category="Core" version="3.2">
<brief_description>
</brief_description>
<description>
</description>
<tutorials>
</tutorials>
<methods>
<method name="get_bottom_left_point">
<return type="Vector3">
</return>
<argument index="0" name="face" type="int">
</argument>
<description>
</description>
</method>
<method name="get_bottom_right_point">
<return type="Vector3">
</return>
<argument index="0" name="face" type="int">
</argument>
<description>
</description>
</method>
<method name="get_face_light_direction">
<return type="Vector3">
</return>
<argument index="0" name="face" type="int">
</argument>
<description>
</description>
</method>
<method name="get_face_point_ao">
<return type="int">
</return>
<argument index="0" name="face" type="int">
</argument>
<argument index="1" name="index" type="int">
</argument>
<description>
</description>
</method>
<method name="get_face_point_ao_color">
<return type="Color">
</return>
<argument index="0" name="face" type="int">
</argument>
<argument index="1" name="index" type="int">
</argument>
<description>
</description>
</method>
<method name="get_face_point_color_mixed">
<return type="Color">
</return>
<argument index="0" name="face" type="int">
</argument>
<argument index="1" name="index" type="int">
</argument>
<description>
</description>
</method>
<method name="get_face_point_light_color">
<return type="Color">
</return>
<argument index="0" name="face" type="int">
</argument>
<argument index="1" name="index" type="int">
</argument>
<description>
</description>
</method>
<method name="get_opposite_face">
<return type="int">
</return>
<argument index="0" name="face" type="int">
</argument>
<description>
</description>
</method>
<method name="get_point">
<return type="Vector3">
</return>
<argument index="0" name="index" type="int">
</argument>
<description>
</description>
</method>
<method name="get_point_ao">
<return type="int">
</return>
<argument index="0" name="index" type="int">
</argument>
<description>
</description>
</method>
<method name="get_point_fill">
<return type="int">
</return>
<argument index="0" name="index" type="int">
</argument>
<description>
</description>
</method>
<method name="get_point_for_face">
<return type="Vector3">
</return>
<argument index="0" name="face" type="int">
</argument>
<argument index="1" name="index" type="int">
</argument>
<description>
</description>
</method>
<method name="get_point_id">
<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_point_index">
<return type="int">
</return>
<argument index="0" name="face" type="int">
</argument>
<argument index="1" name="index" type="int">
</argument>
<description>
</description>
</method>
<method name="get_point_neighbours">
<return type="int">
</return>
<argument index="0" name="index" type="int">
</argument>
<description>
</description>
</method>
<method name="get_point_type">
<return type="int">
</return>
<argument index="0" name="index" type="int">
</argument>
<description>
</description>
</method>
<method name="get_point_uv_direction">
<return type="Vector2">
</return>
<argument index="0" name="face" type="int">
</argument>
<argument index="1" name="index" type="int">
</argument>
<description>
</description>
</method>
<method name="get_points_for_face">
<return type="Vector3">
</return>
<argument index="0" name="face" type="int">
</argument>
<argument index="1" name="index" type="int">
</argument>
<description>
</description>
</method>
<method name="get_top_left_point">
<return type="Vector3">
</return>
<argument index="0" name="face" type="int">
</argument>
<description>
</description>
</method>
<method name="get_top_right_point">
<return type="Vector3">
</return>
<argument index="0" name="face" type="int">
</argument>
<description>
</description>
</method>
<method name="get_vertex_vector3_for_point">
<return type="Vector3">
</return>
<argument index="0" name="face" type="int">
</argument>
<argument index="1" name="index" type="int">
</argument>
<description>
</description>
</method>
<method name="has_points">
<return type="bool">
</return>
<description>
</description>
</method>
<method name="is_face_visible">
<return type="bool">
</return>
<argument index="0" name="face" type="int">
</argument>
<description>
</description>
</method>
<method name="is_sub_voxel_point">
<return type="bool">
</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="refresh_points">
<return type="void">
</return>
<description>
</description>
</method>
<method name="set_point">
<return type="void">
</return>
<argument index="0" name="point" type="int">
</argument>
<argument index="1" name="x" type="int">
</argument>
<argument index="2" name="y" type="int">
</argument>
<argument index="3" name="z" type="int">
</argument>
<description>
</description>
</method>
<method name="setup">
<return type="void">
</return>
<argument index="0" name="chunk" type="Node">
</argument>
<argument index="1" name="x" type="int">
</argument>
<argument index="2" name="y" type="int">
</argument>
<argument index="3" name="z" type="int">
</argument>
<argument index="4" name="size" type="int" default="1">
</argument>
<description>
</description>
</method>
</methods>
<members>
<member name="size" type="int" setter="set_size" getter="get_size" default="1">
</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>
</members>
<constants>
<constant name="P000" value="0" enum="Points">
</constant>
<constant name="P100" value="1" enum="Points">
</constant>
<constant name="P010" value="2" enum="Points">
</constant>
<constant name="P001" value="3" enum="Points">
</constant>
<constant name="P110" value="4" enum="Points">
</constant>
<constant name="P011" value="5" enum="Points">
</constant>
<constant name="P101" value="6" enum="Points">
</constant>
<constant name="P111" value="7" enum="Points">
</constant>
<constant name="POINT_COUNT" value="8" enum="Points">
</constant>
<constant name="VOXEL_FACE_FRONT" value="0" enum="VoxelFaces">
</constant>
<constant name="VOXEL_FACE_RIGHT" value="1" enum="VoxelFaces">
</constant>
<constant name="VOXEL_FACE_BACK" value="2" enum="VoxelFaces">
</constant>
<constant name="VOXEL_FACE_LEFT" value="3" enum="VoxelFaces">
</constant>
<constant name="VOXEL_FACE_TOP" value="4" enum="VoxelFaces">
</constant>
<constant name="VOXEL_FACE_BOTTOM" value="5" enum="VoxelFaces">
</constant>
<constant name="VOXEL_FACE_COUNT" value="6" enum="VoxelFaces">
</constant>
<constant name="VOXEL_NEIGHBOUR_NONE" value="0" enum="VoxelNeighbours">
</constant>
<constant name="VOXEL_NEIGHBOUR_LEFT" value="1" enum="VoxelNeighbours">
</constant>
<constant name="VOXEL_NEIGHBOUR_RIGHT" value="2" enum="VoxelNeighbours">
</constant>
<constant name="VOXEL_NEIGHBOUR_FRONT" value="4" enum="VoxelNeighbours">
</constant>
<constant name="VOXEL_NEIGHBOUR_BACK" value="8" enum="VoxelNeighbours">
</constant>
<constant name="VOXEL_NEIGHBOUR_TOP" value="16" enum="VoxelNeighbours">
</constant>
<constant name="VOXEL_NEIGHBOUR_BOTTOM" value="32" enum="VoxelNeighbours">
</constant>
<constant name="VOXEL_NEIGHBOUR_LEFT_FRONT" value="64" enum="VoxelNeighbours">
</constant>
<constant name="VOXEL_NEIGHBOUR_LEFT_BACK" value="128" enum="VoxelNeighbours">
</constant>
<constant name="VOXEL_NEIGHBOUR_RIGHT_FRONT" value="256" enum="VoxelNeighbours">
</constant>
<constant name="VOXEL_NEIGHBOUR_RIGHT_BACK" value="512" enum="VoxelNeighbours">
</constant>
<constant name="VOXEL_NEIGHBOUR_TOP_LEFT" value="1024" enum="VoxelNeighbours">
</constant>
<constant name="VOXEL_NEIGHBOUR_TOP_RIGHT" value="2048" enum="VoxelNeighbours">
</constant>
<constant name="VOXEL_NEIGHBOUR_TOP_FRONT" value="4096" enum="VoxelNeighbours">
</constant>
<constant name="VOXEL_NEIGHBOUR_TOP_BACK" value="8192" enum="VoxelNeighbours">
</constant>
<constant name="VOXEL_NEIGHBOUR_BOTTOM_LEFT" value="16384" enum="VoxelNeighbours">
</constant>
<constant name="VOXEL_NEIGHBOUR_BOTTOM_RIGHT" value="32768" enum="VoxelNeighbours">
</constant>
<constant name="VOXEL_NEIGHBOUR_BOTTOM_FRONT" value="65536" enum="VoxelNeighbours">
</constant>
<constant name="VOXEL_NEIGHBOUR_BOTTOM_BACK" value="131072" enum="VoxelNeighbours">
</constant>
<constant name="VOXEL_NEIGHBOUR_BOTTOM_LEFT_FRONT" value="262144" enum="VoxelNeighbours">
</constant>
<constant name="VOXEL_NEIGHBOUR_BOTTOM_LEFT_BACK" value="524288" enum="VoxelNeighbours">
</constant>
<constant name="VOXEL_NEIGHBOUR_BOTTOM_RIGHT_FRONT" value="1048576" enum="VoxelNeighbours">
</constant>
<constant name="VOXEL_NEIGHBOUR_BOTTOM_RIGHT_BACK" value="2097152" enum="VoxelNeighbours">
</constant>
<constant name="VOXEL_NEIGHBOUR_TOP_LEFT_FRONT" value="4194304" enum="VoxelNeighbours">
</constant>
<constant name="VOXEL_NEIGHBOUR_TOP_LEFT_BACK" value="8388608" enum="VoxelNeighbours">
</constant>
<constant name="VOXEL_NEIGHBOUR_TOP_RIGHT_FRONT" value="16777216" enum="VoxelNeighbours">
</constant>
<constant name="VOXEL_NEIGHBOUR_TOP_RIGHT_BACK" value="33554432" enum="VoxelNeighbours">
</constant>
<constant name="VOXEL_FULL_NEIGHBOURS_CROSS" value="63" enum="VoxelNeighbours">
</constant>
<constant name="VOXEL_FULL_SIDE_NEIGHBOURS" value="15" enum="VoxelNeighbours">
</constant>
<constant name="VOXEL_FULL_SIDE_NEIGHBOURS_TOP" value="31" enum="VoxelNeighbours">
</constant>
<constant name="VOXEL_FULL_SIDE_NEIGHBOURS_DOWN" value="47" enum="VoxelNeighbours">
</constant>
</constants>
</class>

View File

@ -0,0 +1,49 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="VoxelLight" inherits="Reference" category="Core" version="3.2">
<brief_description>
</brief_description>
<description>
</description>
<tutorials>
</tutorials>
<methods>
<method name="get_world_position_x" qualifiers="const">
<return type="int">
</return>
<description>
</description>
</method>
<method name="get_world_position_y" qualifiers="const">
<return type="int">
</return>
<description>
</description>
</method>
<method name="get_world_position_z" qualifiers="const">
<return type="int">
</return>
<description>
</description>
</method>
<method name="set_world_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>
</methods>
<members>
<member name="color" type="Color" setter="set_color" getter="get_color" default="Color( 0, 0, 0, 1 )">
</member>
<member name="size" type="float" setter="set_size" getter="get_size" default="0.0">
</member>
</members>
<constants>
</constants>
</class>

285
doc_classes/VoxelMesher.xml Normal file
View File

@ -0,0 +1,285 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="VoxelMesher" inherits="Reference" category="Core" version="3.2">
<brief_description>
</brief_description>
<description>
</description>
<tutorials>
</tutorials>
<methods>
<method name="_add_chunk" qualifiers="virtual">
<return type="void">
</return>
<argument index="0" name="chunk" type="VoxelChunk">
</argument>
<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="_bake_colors" qualifiers="virtual">
<return type="void">
</return>
<argument index="0" name="chunk" type="VoxelChunk">
</argument>
<description>
</description>
</method>
<method name="_bake_liquid_colors" qualifiers="virtual">
<return type="void">
</return>
<argument index="0" name="chunk" type="VoxelChunk">
</argument>
<description>
</description>
</method>
<method name="add_chunk">
<return type="void">
</return>
<argument index="0" name="chunk" type="Node">
</argument>
<description>
</description>
</method>
<method name="add_chunk_liquid">
<return type="void">
</return>
<argument index="0" name="chunk" type="Node">
</argument>
<description>
</description>
</method>
<method name="add_color">
<return type="void">
</return>
<argument index="0" name="color" type="Color">
</argument>
<description>
</description>
</method>
<method name="add_indices">
<return type="void">
</return>
<argument index="0" name="indice" type="int">
</argument>
<description>
</description>
</method>
<method name="add_mesh_data_resource">
<return type="void">
</return>
<argument index="0" name="mesh" type="MeshDataResource">
</argument>
<argument index="1" name="position" type="Vector3" default="Rect2( 0, 0, 1, 1 )">
</argument>
<argument index="2" name="rotation" type="Vector3" default="Vector3( 1, 1, 1 )">
</argument>
<argument index="3" name="scale" type="Vector3" default="Vector3( 0, 0, 0 )">
</argument>
<argument index="4" name="uv_rect" type="Rect2" default="Vector3( 0, 0, 0 )">
</argument>
<description>
</description>
</method>
<method name="add_mesh_data_resource_transform">
<return type="void">
</return>
<argument index="0" name="mesh" type="MeshDataResource">
</argument>
<argument index="1" name="transform" type="Transform">
</argument>
<argument index="2" name="uv_rect" type="Rect2" default="Rect2( 0, 0, 1, 1 )">
</argument>
<description>
</description>
</method>
<method name="add_normal">
<return type="void">
</return>
<argument index="0" name="normal" type="Vector3">
</argument>
<description>
</description>
</method>
<method name="add_uv">
<return type="void">
</return>
<argument index="0" name="vertex" type="Vector2">
</argument>
<description>
</description>
</method>
<method name="add_vertex">
<return type="void">
</return>
<argument index="0" name="vertex" type="Vector3">
</argument>
<description>
</description>
</method>
<method name="bake_colors">
<return type="void">
</return>
<argument index="0" name="chunk" type="Node">
</argument>
<description>
</description>
</method>
<method name="bake_liquid_colors">
<return type="void">
</return>
<argument index="0" name="chunk" type="Node">
</argument>
<description>
</description>
</method>
<method name="build_mesh">
<return type="void">
</return>
<argument index="0" name="mesh_rid" type="RID">
</argument>
<description>
</description>
</method>
<method name="get_color">
<return type="Color">
</return>
<argument index="0" name="idx" type="int">
</argument>
<description>
</description>
</method>
<method name="get_color_count">
<return type="int">
</return>
<description>
</description>
</method>
<method name="get_indice">
<return type="int">
</return>
<argument index="0" name="idx" type="int">
</argument>
<description>
</description>
</method>
<method name="get_indices_count">
<return type="int">
</return>
<description>
</description>
</method>
<method name="get_normal">
<return type="Vector3">
</return>
<argument index="0" name="idx" type="int">
</argument>
<description>
</description>
</method>
<method name="get_normal_count">
<return type="int">
</return>
<description>
</description>
</method>
<method name="get_uv">
<return type="Vector2">
</return>
<argument index="0" name="idx" type="int">
</argument>
<description>
</description>
</method>
<method name="get_uv_count">
<return type="int">
</return>
<description>
</description>
</method>
<method name="get_vertex">
<return type="Vector3">
</return>
<argument index="0" name="idx" type="int">
</argument>
<description>
</description>
</method>
<method name="get_vertex_count">
<return type="int">
</return>
<description>
</description>
</method>
<method name="remove_color">
<return type="void">
</return>
<argument index="0" name="idx" type="int">
</argument>
<description>
</description>
</method>
<method name="remove_indices">
<return type="void">
</return>
<argument index="0" name="idx" type="int">
</argument>
<description>
</description>
</method>
<method name="remove_normal">
<return type="void">
</return>
<argument index="0" name="idx" type="int">
</argument>
<description>
</description>
</method>
<method name="remove_uv">
<return type="void">
</return>
<argument index="0" name="idx" type="int">
</argument>
<description>
</description>
</method>
<method name="remove_vertex">
<return type="void">
</return>
<argument index="0" name="idx" type="int">
</argument>
<description>
</description>
</method>
<method name="reset">
<return type="void">
</return>
<description>
</description>
</method>
</methods>
<members>
<member name="ao_strength" type="float" setter="set_ao_strength" getter="get_ao_strength" default="0.25">
</member>
<member name="base_light_value" type="float" setter="set_base_light_value" getter="get_base_light_value" default="0.5">
</member>
<member name="library" type="VoxelmanLibrary" setter="set_library" getter="get_library">
</member>
<member name="lod_size" type="int" setter="set_lod_size" getter="get_lod_size" default="1">
</member>
<member name="material" type="Material" setter="set_material" getter="get_material">
</member>
<member name="uv_margin" type="Rect2" setter="set_uv_margin" getter="get_uv_margin" default="Rect2( 0, 0, 1, 1 )">
</member>
<member name="voxel_scale" type="float" setter="set_voxel_scale" getter="get_voxel_scale" default="1.0">
</member>
</members>
<constants>
</constants>
</class>

View File

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

View File

@ -0,0 +1,215 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="VoxelMesherTransvoxel" inherits="VoxelMesher" category="Core" 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>
<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,113 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="VoxelStructure" inherits="Reference" category="Core" version="3.2">
<brief_description>
</brief_description>
<description>
</description>
<tutorials>
</tutorials>
<methods>
<method name="clear_chunks">
<return type="void">
</return>
<description>
</description>
</method>
<method name="get_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_chunk_count" qualifiers="const">
<return type="int">
</return>
<description>
</description>
</method>
<method name="get_chunk_index">
<return type="VoxelChunk">
</return>
<argument index="0" name="index" type="int">
</argument>
<description>
</description>
</method>
<method name="get_chunk_voxel_pos">
<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_voxel">
<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>
<argument index="3" name="channel_index" type="int" default="0">
</argument>
<description>
</description>
</method>
<method name="remove_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="set_voxel">
<return type="void">
</return>
<argument index="0" name="value" type="int">
</argument>
<argument index="1" name="x" type="int">
</argument>
<argument index="2" name="y" type="int">
</argument>
<argument index="3" name="z" type="int">
</argument>
<argument index="4" name="channel_index" type="int" default="0">
</argument>
<description>
</description>
</method>
</methods>
<members>
<member name="chunk_size_x" type="int" setter="set_chunk_size_x" getter="get_chunk_size_x" default="183">
</member>
<member name="chunk_size_y" type="int" setter="set_chunk_size_y" getter="get_chunk_size_y" default="0">
</member>
<member name="chunk_size_z" type="int" setter="set_chunk_size_z" getter="get_chunk_size_z" default="17236224">
</member>
<member name="world_position_x" type="int" setter="set_world_position_x" getter="get_world_position_x" default="50464514">
</member>
<member name="world_position_y" type="int" setter="set_world_position_y" getter="get_world_position_y" default="117834503">
</member>
<member name="world_position_z" type="int" setter="set_world_position_z" getter="get_world_position_z" default="67503107">
</member>
</members>
<constants>
</constants>
</class>

View File

@ -0,0 +1,65 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="VoxelSurface" inherits="Resource" category="Core" version="3.2">
<brief_description>
</brief_description>
<description>
</description>
<tutorials>
</tutorials>
<methods>
<method name="get_rect" qualifiers="const">
<return type="Rect2">
</return>
<argument index="0" name="side" type="int" enum="VoxelSurface.VoxelSurfaceSides">
</argument>
<description>
</description>
</method>
<method name="refresh_rects">
<return type="void">
</return>
<description>
</description>
</method>
<method name="set_rect">
<return type="void">
</return>
<argument index="0" name="side" type="int" enum="VoxelSurface.VoxelSurfaceSides">
</argument>
<argument index="1" name="rect" type="Rect2">
</argument>
<description>
</description>
</method>
<method name="transform_uv" qualifiers="const">
<return type="Vector2">
</return>
<argument index="0" name="side" type="int" enum="VoxelSurface.VoxelSurfaceSides">
</argument>
<argument index="1" name="uv" type="Vector2">
</argument>
<description>
</description>
</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="transparent" type="bool" setter="set_transparent" getter="is_transparent" default="false">
</member>
<member name="voxel_name" type="String" setter="set_name" getter="get_name" default="&quot;&quot;">
</member>
</members>
<constants>
<constant name="VOXEL_SIDE_TOP" value="0" enum="VoxelSurfaceSides">
</constant>
<constant name="VOXEL_SIDE_BOTTOM" value="1" enum="VoxelSurfaceSides">
</constant>
<constant name="VOXEL_SIDE_SIDE" value="2" enum="VoxelSurfaceSides">
</constant>
<constant name="VOXEL_SIDES_COUNT" value="3">
</constant>
</constants>
</class>

View File

@ -0,0 +1,63 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="VoxelSurfaceMerger" inherits="VoxelSurface" category="Core" version="3.2">
<brief_description>
</brief_description>
<description>
</description>
<tutorials>
</tutorials>
<methods>
<method name="get_region">
<return type="AtlasTexture">
</return>
<argument index="0" name="side" type="int" enum="VoxelSurface.VoxelSurfaceSides">
</argument>
<description>
</description>
</method>
<method name="get_texture">
<return type="Texture">
</return>
<argument index="0" name="side" type="int" enum="VoxelSurface.VoxelSurfaceSides">
</argument>
<description>
</description>
</method>
<method name="set_region">
<return type="void">
</return>
<argument index="0" name="side" type="int" enum="VoxelSurface.VoxelSurfaceSides">
</argument>
<argument index="1" name="texture" type="AtlasTexture">
</argument>
<description>
</description>
</method>
<method name="set_texture">
<return type="void">
</return>
<argument index="0" name="side" type="int" enum="VoxelSurface.VoxelSurfaceSides">
</argument>
<argument index="1" name="texture" type="Texture">
</argument>
<description>
</description>
</method>
</methods>
<members>
<member name="region_bottom" type="AtlasTexture" setter="set_region" getter="get_region">
</member>
<member name="region_side" type="AtlasTexture" setter="set_region" getter="get_region">
</member>
<member name="region_top" type="AtlasTexture" setter="set_region" getter="get_region">
</member>
<member name="texture_bottom" type="Texture" setter="set_texture" getter="get_texture">
</member>
<member name="texture_side" type="Texture" setter="set_texture" getter="get_texture">
</member>
<member name="texture_top" type="Texture" setter="set_texture" getter="get_texture">
</member>
</members>
<constants>
</constants>
</class>

View File

@ -0,0 +1,63 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="VoxelSurfaceSimple" inherits="VoxelSurface" category="Core" version="3.2">
<brief_description>
</brief_description>
<description>
</description>
<tutorials>
</tutorials>
<methods>
<method name="get_atlas_x" qualifiers="const">
<return type="int">
</return>
<argument index="0" name="side" type="int" enum="VoxelSurface.VoxelSurfaceSides">
</argument>
<description>
</description>
</method>
<method name="get_atlas_y" qualifiers="const">
<return type="int">
</return>
<argument index="0" name="side" type="int" enum="VoxelSurface.VoxelSurfaceSides">
</argument>
<description>
</description>
</method>
<method name="set_atlas_x">
<return type="void">
</return>
<argument index="0" name="side" type="int" enum="VoxelSurface.VoxelSurfaceSides">
</argument>
<argument index="1" name="value" type="int">
</argument>
<description>
</description>
</method>
<method name="set_atlas_y">
<return type="void">
</return>
<argument index="0" name="side" type="int" enum="VoxelSurface.VoxelSurfaceSides">
</argument>
<argument index="1" name="value" type="int">
</argument>
<description>
</description>
</method>
</methods>
<members>
<member name="bottom_atlas_x" type="int" setter="set_atlas_x" getter="get_atlas_x" default="0">
</member>
<member name="bottom_atlas_y" type="int" setter="set_atlas_y" getter="get_atlas_y" default="0">
</member>
<member name="side_atlas_x" type="int" setter="set_atlas_x" getter="get_atlas_x" default="0">
</member>
<member name="side_atlas_y" type="int" setter="set_atlas_y" getter="get_atlas_y" default="0">
</member>
<member name="top_atlas_x" type="int" setter="set_atlas_x" getter="get_atlas_x" default="0">
</member>
<member name="top_atlas_y" type="int" setter="set_atlas_y" getter="get_atlas_y" default="0">
</member>
</members>
<constants>
</constants>
</class>

247
doc_classes/VoxelWorld.xml Normal file
View File

@ -0,0 +1,247 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="VoxelWorld" inherits="Navigation" category="Core" version="3.2">
<brief_description>
</brief_description>
<description>
</description>
<tutorials>
</tutorials>
<methods>
<method name="_create_chunk" qualifiers="virtual">
<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>
<argument index="3" name="chunk" type="VoxelChunk">
</argument>
<description>
</description>
</method>
<method name="_generate_chunk" qualifiers="virtual">
<return type="void">
</return>
<argument index="0" name="chunk" type="VoxelChunk">
</argument>
<description>
</description>
</method>
<method name="_generation_finished" qualifiers="virtual">
<return type="void">
</return>
<description>
</description>
</method>
<method name="_prepare_chunk_for_generation" qualifiers="virtual">
<return type="void">
</return>
<argument index="0" name="chunk" type="VoxelChunk">
</argument>
<description>
</description>
</method>
<method name="add_chunk">
<return type="void">
</return>
<argument index="0" name="chunk" type="Node">
</argument>
<argument index="1" name="x" type="int">
</argument>
<argument index="2" name="y" type="int">
</argument>
<argument index="3" name="z" type="int">
</argument>
<description>
</description>
</method>
<method name="add_to_generation">
<return type="void">
</return>
<argument index="0" name="chunk" type="Node">
</argument>
<description>
</description>
</method>
<method name="add_to_generation_queue">
<return type="void">
</return>
<argument index="0" name="chunk" type="Node">
</argument>
<description>
</description>
</method>
<method name="add_world_area">
<return type="void">
</return>
<argument index="0" name="area" type="WorldArea">
</argument>
<description>
</description>
</method>
<method name="clear">
<return type="void">
</return>
<description>
</description>
</method>
<method name="clear_world_areas">
<return type="void">
</return>
<description>
</description>
</method>
<method name="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_chunk" qualifiers="const">
<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_chunk_count" qualifiers="const">
<return type="int">
</return>
<description>
</description>
</method>
<method name="get_chunk_index">
<return type="VoxelChunk">
</return>
<argument index="0" name="index" type="int">
</argument>
<description>
</description>
</method>
<method name="get_generation_index">
<return type="VoxelChunk">
</return>
<argument index="0" name="index" type="int">
</argument>
<description>
</description>
</method>
<method name="get_generation_queue_index">
<return type="VoxelChunk">
</return>
<argument index="0" name="index" type="int">
</argument>
<description>
</description>
</method>
<method name="get_generation_queue_size">
<return type="int">
</return>
<description>
</description>
</method>
<method name="get_generation_size">
<return type="int">
</return>
<description>
</description>
</method>
<method name="get_world_area" qualifiers="const">
<return type="WorldArea">
</return>
<argument index="0" name="index" type="int">
</argument>
<description>
</description>
</method>
<method name="get_world_area_count" qualifiers="const">
<return type="int">
</return>
<description>
</description>
</method>
<method name="remove_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="remove_generation_index">
<return type="void">
</return>
<argument index="0" name="index" type="int">
</argument>
<description>
</description>
</method>
<method name="remove_generation_queue_index">
<return type="void">
</return>
<argument index="0" name="index" type="int">
</argument>
<description>
</description>
</method>
<method name="remove_world_area">
<return type="void">
</return>
<argument index="0" name="index" type="int">
</argument>
<description>
</description>
</method>
</methods>
<members>
<member name="chunk_size_x" type="int" setter="set_chunk_size_x" getter="get_chunk_size_x" default="16">
</member>
<member name="chunk_size_y" type="int" setter="set_chunk_size_y" getter="get_chunk_size_y" default="16">
</member>
<member name="chunk_size_z" type="int" setter="set_chunk_size_z" getter="get_chunk_size_z" default="16">
</member>
<member name="chunk_spawn_range" type="int" setter="set_chunk_spawn_range" getter="get_chunk_spawn_range" default="4">
</member>
<member name="current_seed" type="int" setter="set_current_seed" getter="get_current_seed" default="0">
</member>
<member name="level_generator" type="VoxelmanLevelGenerator" setter="set_level_generator" getter="get_level_generator">
</member>
<member name="library" type="VoxelmanLibrary" setter="set_library" getter="get_library">
</member>
<member name="max_concurrent_generations" type="int" setter="set_max_concurrent_generations" getter="get_max_concurrent_generations" default="3">
</member>
<member name="player" type="Spatial" setter="set_player" getter="get_player">
</member>
<member name="player_path" type="NodePath" setter="set_player_path" getter="get_player_path" default="NodePath(&quot;&quot;)">
</member>
<member name="use_threads" type="bool" setter="set_use_threads" getter="get_use_threads" default="true">
</member>
<member name="voxel_scale" type="float" setter="set_voxel_scale" getter="get_voxel_scale" default="1.0">
</member>
</members>
<signals>
<signal name="generation_finished">
<description>
</description>
</signal>
</signals>
<constants>
</constants>
</class>

View File

@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="VoxelmanLevelGenerator" inherits="Resource" category="Core" version="3.2">
<brief_description>
</brief_description>
<description>
</description>
<tutorials>
</tutorials>
<methods>
<method name="_generate_chunk" qualifiers="virtual">
<return type="void">
</return>
<argument index="0" name="chunk" type="VoxelChunk">
</argument>
<description>
</description>
</method>
<method name="generate_chunk">
<return type="void">
</return>
<argument index="0" name="chunk" type="Node">
</argument>
<description>
</description>
</method>
</methods>
<constants>
</constants>
</class>

View File

@ -0,0 +1,133 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="VoxelmanLibrary" inherits="Resource" category="Core" version="3.2">
<brief_description>
</brief_description>
<description>
</description>
<tutorials>
</tutorials>
<methods>
<method name="_setup_material_albedo" qualifiers="virtual">
<return type="void">
</return>
<argument index="0" name="material_index" type="int">
</argument>
<argument index="1" name="texture" type="Texture">
</argument>
<description>
</description>
</method>
<method name="clear_liquid_surfaces">
<return type="void">
</return>
<description>
</description>
</method>
<method name="clear_surfaces">
<return type="void">
</return>
<description>
</description>
</method>
<method name="get_liquid_num_surfaces">
<return type="int">
</return>
<description>
</description>
</method>
<method name="get_liquid_voxel_surface" qualifiers="const">
<return type="VoxelSurface">
</return>
<argument index="0" name="index" type="int">
</argument>
<description>
</description>
</method>
<method name="get_num_surfaces">
<return type="int">
</return>
<description>
</description>
</method>
<method name="get_voxel_surface" qualifiers="const">
<return type="VoxelSurface">
</return>
<argument index="0" name="index" type="int">
</argument>
<description>
</description>
</method>
<method name="refresh_rects">
<return type="void">
</return>
<description>
</description>
</method>
<method name="remove_liquid_surface">
<return type="void">
</return>
<argument index="0" name="index" type="int">
</argument>
<description>
</description>
</method>
<method name="remove_surface">
<return type="void">
</return>
<argument index="0" name="index" type="int">
</argument>
<description>
</description>
</method>
<method name="set_liquid_voxel_surface">
<return type="void">
</return>
<argument index="0" name="index" type="int">
</argument>
<argument index="1" name="surface" type="VoxelSurface">
</argument>
<description>
</description>
</method>
<method name="set_voxel_surface">
<return type="void">
</return>
<argument index="0" name="index" type="int">
</argument>
<argument index="1" name="surface" type="VoxelSurface">
</argument>
<description>
</description>
</method>
<method name="setup_material_albedo">
<return type="void">
</return>
<argument index="0" name="material_index" type="int">
</argument>
<argument index="1" name="texture" type="Texture">
</argument>
<description>
</description>
</method>
</methods>
<members>
<member name="clutter_material" type="Material" setter="set_clutter_material" getter="get_clutter_material">
</member>
<member name="liquid_material" type="Material" setter="set_liquid_material" getter="get_liquid_material">
</member>
<member name="material" type="Material" setter="set_material" getter="get_material">
</member>
<member name="prop_material" type="Material" setter="set_prop_material" getter="get_prop_material">
</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>
</constants>
</class>

View File

@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="VoxelmanLibraryMerger" inherits="VoxelmanLibrary" category="Core" version="3.2">
<brief_description>
</brief_description>
<description>
</description>
<tutorials>
</tutorials>
<methods>
</methods>
<members>
<member name="background_color" type="Color" setter="set_background_color" getter="get_background_color" default="Color( 0, 0, 0, 1 )">
</member>
<member name="keep_original_atlases" type="bool" setter="set_keep_original_atlases" getter="get_keep_original_atlases" default="false">
</member>
<member name="liquid_voxel_surfaces" type="Array" setter="set_liquid_voxel_surfaces" getter="get_liquid_voxel_surfaces" default="[ ]">
</member>
<member name="margin" type="int" setter="set_margin" getter="get_margin" default="0">
</member>
<member name="max_atlas_size" type="int" setter="set_max_atlas_size" getter="get_max_atlas_size" default="1024">
</member>
<member name="texture_flags" type="int" setter="set_texture_flags" getter="get_texture_flags" default="5">
</member>
<member name="voxel_surfaces" type="Array" setter="set_voxel_surfaces" getter="get_voxel_surfaces" default="[ ]">
</member>
</members>
<constants>
</constants>
</class>

View File

@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="VoxelmanLibrarySimple" inherits="VoxelmanLibrary" category="Core" version="3.2">
<brief_description>
</brief_description>
<description>
</description>
<tutorials>
</tutorials>
<methods>
</methods>
<members>
<member name="atlas_columns" type="int" setter="set_atlas_columns" getter="get_atlas_columns" default="8">
</member>
<member name="atlas_rows" type="int" setter="set_atlas_rows" getter="get_atlas_rows" default="8">
</member>
<member name="liquid_voxel_surfaces" type="Array" setter="set_liquid_voxel_surfaces" getter="get_liquid_voxel_surfaces" default="[ ]">
</member>
<member name="voxel_surfaces" type="Array" setter="set_voxel_surfaces" getter="get_voxel_surfaces" default="[ ]">
</member>
</members>
<constants>
</constants>
</class>

View File

@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="VoxelmanQueue" inherits="Reference" category="Core" version="3.2">
<brief_description>
</brief_description>
<description>
</description>
<tutorials>
</tutorials>
<methods>
<method name="dequeue">
<return type="Variant">
</return>
<description>
</description>
</method>
<method name="enqueue">
<return type="void">
</return>
<argument index="0" name="obj" type="Variant">
</argument>
<description>
</description>
</method>
<method name="peek">
<return type="Variant">
</return>
<description>
</description>
</method>
<method name="resize">
<return type="void">
</return>
<argument index="0" name="new_size" type="int">
</argument>
<description>
</description>
</method>
</methods>
<constants>
</constants>
</class>

View File

@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="VoxelmanUnboundedQueue" inherits="Reference" category="Core" version="3.2">
<brief_description>
</brief_description>
<description>
</description>
<tutorials>
</tutorials>
<methods>
<method name="dequeue">
<return type="Variant">
</return>
<description>
</description>
</method>
<method name="enqueue">
<return type="void">
</return>
<argument index="0" name="obj" type="Variant">
</argument>
<description>
</description>
</method>
<method name="peek">
<return type="Variant">
</return>
<description>
</description>
</method>
</methods>
<constants>
</constants>
</class>

25
doc_classes/WorldArea.xml Normal file
View File

@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="WorldArea" inherits="Reference" category="Core" version="3.2">
<brief_description>
</brief_description>
<description>
</description>
<tutorials>
</tutorials>
<methods>
</methods>
<members>
<member name="aabb" type="AABB" setter="set_aabb" getter="get_aabb" default="AABB( 0, 0, 0, 0, 0, 0 )">
</member>
<member name="fov_texture" type="Texture" setter="set_fov_texture" getter="get_fov_texture">
</member>
<member name="level" type="int" setter="set_level" getter="get_level" default="0">
</member>
<member name="map_texture" type="Texture" setter="set_map_texture" getter="get_map_texture">
</member>
<member name="name" type="String" setter="set_name" getter="get_name" default="&quot;&quot;">
</member>
</members>
<constants>
</constants>
</class>

View File

@ -1,88 +0,0 @@
#include "editor_import_collada_mdr.h"
String EditorImportColladaMdr::get_importer_name() const {
return "collada_mdr";
}
String EditorImportColladaMdr::get_visible_name() const {
return "Collada MDR";
}
void EditorImportColladaMdr::get_recognized_extensions(List<String> *p_extensions) const {
p_extensions->push_back("dae");
}
String EditorImportColladaMdr::get_save_extension() const {
return "res";
}
String EditorImportColladaMdr::get_resource_type() const {
return "MeshDataResource";
}
float EditorImportColladaMdr::get_priority() const {
return 1.0;
}
int EditorImportColladaMdr::get_preset_count() const {
return 0;
}
String EditorImportColladaMdr::get_preset_name(int p_idx) const {
return "";
}
void EditorImportColladaMdr::get_import_options(List<ImportOption> *r_options, int p_preset) const {
}
bool EditorImportColladaMdr::get_option_visibility(const String &p_option, const Map<StringName, Variant> &p_options) const {
return true;
}
Error EditorImportColladaMdr::import(const String &p_source_file, const String &p_save_path, const Map<StringName, Variant> &p_options, List<String> *r_platform_variants, List<String> *r_gen_files, Variant *r_metadata) {
Node *n = _importer->import_scene(p_source_file, 0, 15);
if (n == NULL) {
n->queue_delete();
return Error::ERR_PARSE_ERROR;
}
for (int i = 0; i < n->get_child_count(); ++i) {
Node *c = n->get_child(i);
print_error(String::num(i));
if (c == NULL) {
continue;
}
if (Object::cast_to<MeshInstance>(c)) {
MeshInstance *mi = Object::cast_to<MeshInstance>(c);
Ref<ArrayMesh> mesh = mi->get_mesh();
if (mesh.is_valid()) {
Ref<MeshDataResource> mdr;
mdr.instance();
mdr->set_array(mesh->surface_get_arrays(0));
n->queue_delete();
return ResourceSaver::save(p_save_path + "." + get_save_extension(), mdr);
}
}
}
n->queue_delete();
return Error::ERR_PARSE_ERROR;
}
EditorImportColladaMdr::EditorImportColladaMdr() {
_importer.instance();
}
EditorImportColladaMdr::~EditorImportColladaMdr() {
_importer.unref();
}

View File

@ -1,42 +0,0 @@
#ifndef EDITOR_IMPORT_COLLADA_MDR
#define EDITOR_IMPORT_COLLADA_MDR
#include "editor/import/editor_import_plugin.h"
#include "core/ustring.h"
#include "scene/main/node.h"
#include "scene/resources/mesh.h"
#include "scene/3d/mesh_instance.h"
#include "core/io/resource_saver.h"
#include "mesh_data_resource.h"
#include "editor/import/editor_import_collada.h"
class EditorImportColladaMdr : public EditorImportPlugin {
GDCLASS(EditorImportColladaMdr, EditorImportPlugin);
public:
virtual String get_importer_name() const;
virtual String get_visible_name() const;
virtual void get_recognized_extensions(List<String> *p_extensions) const;
virtual String get_save_extension() const;
virtual String get_resource_type() const;
virtual float get_priority() const;
virtual int get_preset_count() const;
virtual String get_preset_name(int p_idx) const;
virtual void get_import_options(List<ImportOption> *r_options, int p_preset = 0) const;
virtual bool get_option_visibility(const String &p_option, const Map<StringName, Variant> &p_options) const;
virtual Error import(const String &p_source_file, const String &p_save_path, const Map<StringName, Variant> &p_options, List<String> *r_platform_variants, List<String> *r_gen_files = NULL, Variant *r_metadata = NULL);
EditorImportColladaMdr();
~EditorImportColladaMdr();
private:
Ref<EditorSceneImporterCollada> _importer;
};
#endif

View File

@ -1,22 +0,0 @@
#include "editor_plugin_collada_mdr.h"
void EditorPluginColladaMdr::_notification(int p_what) {
switch (p_what) {
case NOTIFICATION_ENTER_TREE:
_importer.instance();
add_import_plugin(_importer);
break;
case NOTIFICATION_EXIT_TREE:
remove_import_plugin(_importer);
_importer.unref();
break;
}
}
EditorPluginColladaMdr::EditorPluginColladaMdr(EditorNode *node) {
_node = node;
}

View File

@ -1,25 +0,0 @@
#ifndef EDITOR_PLUGIN_COLLADA_MDR
#define EDITOR_PLUGIN_COLLADA_MDR
#include "editor/editor_plugin.h"
#include "core/ustring.h"
#include "editor_import_collada_mdr.h"
class EditorPluginColladaMdr : public EditorPlugin {
GDCLASS(EditorPluginColladaMdr, EditorPlugin);
public:
EditorPluginColladaMdr(EditorNode *node);
protected:
void _notification(int p_what);
private:
EditorNode *_node;
Ref<EditorImportColladaMdr> _importer;
};
#endif

View File

@ -1,20 +0,0 @@
#include "mesh_data_resource.h"
Array MeshDataResource::get_array() {
return _arrays;
}
void MeshDataResource::set_array(const Array &p_arrays) {
_arrays.clear();
_arrays = p_arrays.duplicate(true);
}
MeshDataResource::MeshDataResource() {
}
void MeshDataResource::_bind_methods() {
ClassDB::bind_method(D_METHOD("get_array"), &MeshDataResource::get_array);
ClassDB::bind_method(D_METHOD("set_array", "array"), &MeshDataResource::set_array);
ADD_PROPERTY(PropertyInfo(Variant::ARRAY, "array"), "set_array", "get_array");
}

View File

@ -1,27 +0,0 @@
#ifndef PROP_MESH_DATA_REOURCE_H
#define PROP_MESH_DATA_REOURCE_H
#include "core/resource.h"
#include "core/array.h"
#include "scene/resources/mesh.h"
class PropMeshDataResource : public Resource {
GDCLASS(PropMeshDataResource, Resource);
RES_BASE_EXTENSION("pmdres");
public:
Array get_array();
void set_array(const Array &p_arrays);
PropMeshDataResource();
protected:
static void _bind_methods();
private:
Array _arrays;
};
#endif

View File

@ -1,20 +0,0 @@
#include "mesh_data_resource.h"
Array MeshDataResource::get_array() {
return _arrays;
}
void MeshDataResource::set_array(const Array &p_arrays) {
_arrays.clear();
_arrays = p_arrays.duplicate(true);
}
MeshDataResource::MeshDataResource() {
}
void MeshDataResource::_bind_methods() {
ClassDB::bind_method(D_METHOD("get_array"), &MeshDataResource::get_array);
ClassDB::bind_method(D_METHOD("set_array", "array"), &MeshDataResource::set_array);
ADD_PROPERTY(PropertyInfo(Variant::ARRAY, "array"), "set_array", "get_array");
}

View File

@ -1,27 +0,0 @@
#ifndef PROP_MESH_DATA_REOURCE_H
#define PROP_MESH_DATA_REOURCE_H
#include "core/resource.h"
#include "core/array.h"
#include "scene/resources/mesh.h"
class PropMeshDataResource : public Resource {
GDCLASS(PropMeshDataResource, Resource);
RES_BASE_EXTENSION("pmdres");
public:
Array get_array();
void set_array(const Array &p_arrays);
PropMeshDataResource();
protected:
static void _bind_methods();
private:
Array _arrays;
};
#endif