pandemonium_engine/modules/terraman_2d/doc_classes/Terrain2DWorld.xml

433 lines
14 KiB
XML

<?xml version="1.0" encoding="UTF-8" ?>
<class name="Terrain2DWorld" inherits="Navigation2D" version="3.11">
<brief_description>
</brief_description>
<description>
</description>
<tutorials>
</tutorials>
<methods>
<method name="_chunk_added" qualifiers="virtual">
<return type="void" />
<argument index="0" name="chunk" type="Terrain2DChunk" />
<description>
</description>
</method>
<method name="_create_chunk" qualifiers="virtual">
<return type="Terrain2DChunk" />
<argument index="0" name="x" type="int" />
<argument index="1" name="y" type="int" />
<argument index="2" name="chunk" type="Terrain2DChunk" />
<description>
</description>
</method>
<method name="_draw" qualifiers="virtual">
<return type="void" />
<description>
</description>
</method>
<method name="_generate_chunk" qualifiers="virtual">
<return type="void" />
<argument index="0" name="chunk" type="Terrain2DChunk" />
<description>
</description>
</method>
<method name="_generation_finished" qualifiers="virtual">
<return type="void" />
<description>
</description>
</method>
<method name="_get_channel_index_info" qualifiers="virtual">
<return type="int" />
<argument index="0" name="channel_type" type="int" />
<description>
</description>
</method>
<method name="_prepare_chunk_for_generation" qualifiers="virtual">
<return type="void" />
<argument index="0" name="chunk" type="Terrain2DChunk" />
<description>
</description>
</method>
<method name="_set_voxel_with_tool" qualifiers="virtual">
<return type="void" />
<argument index="0" name="mode_add" type="bool" />
<argument index="1" name="hit_position" type="Vector2" />
<argument index="2" name="selected_voxel" type="int" />
<argument index="3" name="isolevel" type="int" />
<description>
</description>
</method>
<method name="can_chunk_do_build_step">
<return type="bool" />
<description>
</description>
</method>
<method name="chunk_add">
<return type="void" />
<argument index="0" name="chunk" type="Terrain2DChunk" />
<argument index="1" name="x" type="int" />
<argument index="2" name="y" type="int" />
<description>
</description>
</method>
<method name="chunk_create">
<return type="Terrain2DChunk" />
<argument index="0" name="x" type="int" />
<argument index="1" name="y" type="int" />
<description>
</description>
</method>
<method name="chunk_get">
<return type="Terrain2DChunk" />
<argument index="0" name="x" type="int" />
<argument index="1" name="y" type="int" />
<description>
</description>
</method>
<method name="chunk_get_count" qualifiers="const">
<return type="int" />
<description>
</description>
</method>
<method name="chunk_get_index">
<return type="Terrain2DChunk" />
<argument index="0" name="index" type="int" />
<description>
</description>
</method>
<method name="chunk_get_or_create">
<return type="Terrain2DChunk" />
<argument index="0" name="x" type="int" />
<argument index="1" name="y" type="int" />
<description>
</description>
</method>
<method name="chunk_has" qualifiers="const">
<return type="bool" />
<argument index="0" name="x" type="int" />
<argument index="1" name="y" type="int" />
<description>
</description>
</method>
<method name="chunk_remove">
<return type="Terrain2DChunk" />
<argument index="0" name="x" type="int" />
<argument index="1" name="y" type="int" />
<description>
</description>
</method>
<method name="chunk_remove_index">
<return type="Terrain2DChunk" />
<argument index="0" name="index" type="int" />
<description>
</description>
</method>
<method name="chunk_setup">
<return type="void" />
<argument index="0" name="chunk" type="Terrain2DChunk" />
<description>
</description>
</method>
<method name="chunks_clear">
<return type="void" />
<description>
</description>
</method>
<method name="generation_add_to">
<return type="void" />
<argument index="0" name="chunk" type="Terrain2DChunk" />
<description>
</description>
</method>
<method name="generation_get_index">
<return type="Terrain2DChunk" />
<argument index="0" name="index" type="int" />
<description>
</description>
</method>
<method name="generation_get_size" qualifiers="const">
<return type="int" />
<description>
</description>
</method>
<method name="generation_queue_add_to">
<return type="void" />
<argument index="0" name="chunk" type="Terrain2DChunk" />
<description>
</description>
</method>
<method name="generation_queue_get_index">
<return type="Terrain2DChunk" />
<argument index="0" name="index" type="int" />
<description>
</description>
</method>
<method name="generation_queue_get_size" qualifiers="const">
<return type="int" />
<description>
</description>
</method>
<method name="generation_queue_remove_index">
<return type="void" />
<argument index="0" name="index" type="int" />
<description>
</description>
</method>
<method name="generation_remove_index">
<return type="void" />
<argument index="0" name="index" type="int" />
<description>
</description>
</method>
<method name="get_channel_index_info">
<return type="int" />
<argument index="0" name="channel_type" type="int" enum="Terrain2DWorld.ChannelTypeInfo" />
<description>
</description>
</method>
<method name="get_chunk_at_world_position">
<return type="Terrain2DChunk" />
<argument index="0" name="world_position" type="Vector2" />
<description>
</description>
</method>
<method name="get_or_create_chunk_at_world_position">
<return type="Terrain2DChunk" />
<argument index="0" name="world_position" type="Vector2" />
<description>
</description>
</method>
<method name="get_voxel_at_world_position">
<return type="int" />
<argument index="0" name="world_position" type="Vector2" />
<argument index="1" name="channel_index" type="int" />
<description>
</description>
</method>
<method name="is_position_walkable">
<return type="bool" />
<argument index="0" name="position" type="Vector2" />
<description>
</description>
</method>
<method name="light_add">
<return type="void" />
<argument index="0" name="light" type="Terrain2DLight" />
<description>
</description>
</method>
<method name="light_get">
<return type="Terrain2DLight" />
<argument index="0" name="index" type="int" />
<description>
</description>
</method>
<method name="light_get_count" qualifiers="const">
<return type="int" />
<description>
</description>
</method>
<method name="light_remove">
<return type="void" />
<argument index="0" name="index" type="int" />
<description>
</description>
</method>
<method name="lights_clear">
<return type="void" />
<description>
</description>
</method>
<method name="lights_get">
<return type="Array" />
<description>
</description>
</method>
<method name="lights_set">
<return type="void" />
<argument index="0" name="chunks" type="Array" />
<description>
</description>
</method>
<method name="on_chunk_mesh_generation_finished">
<return type="void" />
<argument index="0" name="chunk" type="Terrain2DChunk" />
<description>
</description>
</method>
<method name="prop_add">
<return type="void" />
<argument index="0" name="transform" type="Transform" />
<argument index="1" name="prop" type="Prop2DData" />
<argument index="2" name="apply_voxel_scale" type="bool" default="true" />
<description>
</description>
</method>
<method name="set_voxel_at_world_position">
<return type="void" />
<argument index="0" name="world_position" type="Vector2" />
<argument index="1" name="data" type="int" />
<argument index="2" name="channel_index" type="int" />
<argument index="3" name="rebuild" type="bool" default="true" />
<description>
</description>
</method>
<method name="set_voxel_with_tool">
<return type="void" />
<argument index="0" name="mode_add" type="bool" />
<argument index="1" name="hit_position" type="Vector2" />
<argument index="2" name="selected_voxel" type="int" />
<argument index="3" name="isolevel" type="int" />
<description>
</description>
</method>
<method name="voxel_structure_add">
<return type="void" />
<argument index="0" name="structure" type="Terrain2DStructure" />
<description>
</description>
</method>
<method name="voxel_structure_add_at_position">
<return type="void" />
<argument index="0" name="structure" type="Terrain2DStructure" />
<argument index="1" name="world_position" type="Vector3" />
<description>
</description>
</method>
<method name="voxel_structure_get" qualifiers="const">
<return type="Terrain2DStructure" />
<argument index="0" name="index" type="int" />
<description>
</description>
</method>
<method name="voxel_structure_get_count" qualifiers="const">
<return type="int" />
<description>
</description>
</method>
<method name="voxel_structure_remove">
<return type="void" />
<argument index="0" name="structure" type="Terrain2DStructure" />
<description>
</description>
</method>
<method name="voxel_structure_remove_index">
<return type="void" />
<argument index="0" name="index" type="int" />
<description>
</description>
</method>
<method name="voxel_structures_clear">
<return type="void" />
<description>
</description>
</method>
<method name="world_area_add">
<return type="void" />
<argument index="0" name="area" type="Terrain2DWorldArea" />
<description>
</description>
</method>
<method name="world_area_get" qualifiers="const">
<return type="Terrain2DWorldArea" />
<argument index="0" name="index" type="int" />
<description>
</description>
</method>
<method name="world_area_get_count" qualifiers="const">
<return type="int" />
<description>
</description>
</method>
<method name="world_area_remove">
<return type="void" />
<argument index="0" name="index" type="int" />
<description>
</description>
</method>
<method name="world_areas_clear">
<return type="void" />
<description>
</description>
</method>
</methods>
<members>
<member name="active" type="bool" setter="set_active" getter="get_active" default="true">
</member>
<member name="cell_size_x" type="int" setter="set_cell_size_x" getter="get_cell_size_x" default="32">
</member>
<member name="cell_size_y" type="int" setter="set_cell_size_y" getter="get_cell_size_y" default="32">
</member>
<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_spawn_range" type="int" setter="set_chunk_spawn_range" getter="get_chunk_spawn_range" default="4">
</member>
<member name="chunks" type="Array" setter="chunks_set" getter="chunks_get" default="[ ]">
</member>
<member name="current_seed" type="int" setter="set_current_seed" getter="get_current_seed" default="0">
</member>
<member name="data_margin_end" type="int" setter="set_data_margin_end" getter="get_data_margin_end" default="0">
</member>
<member name="data_margin_start" type="int" setter="set_data_margin_start" getter="get_data_margin_start" default="0">
</member>
<member name="editable" type="bool" setter="set_editable" getter="get_editable" default="false">
</member>
<member name="level_generator" type="Terrain2DLevelGenerator" setter="set_level_generator" getter="get_level_generator">
</member>
<member name="library" type="Terrain2DLibrary" 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="mesh_transform_terrain" type="Transform2D" setter="mesh_transform_terrain_set" getter="mesh_transform_terrain_get" default="Transform2D( 1, 0, 0, 1, 0, 0 )">
</member>
<member name="mesh_transform_wall_east" type="Transform2D" setter="mesh_transform_wall_east_set" getter="mesh_transform_wall_east_get" default="Transform2D( 1, 0, 0, 1, 0, 0 )">
</member>
<member name="mesh_transform_wall_north" type="Transform2D" setter="mesh_transform_wall_north_set" getter="mesh_transform_wall_north_get" default="Transform2D( 1, 0, 0, 1, 0, 0 )">
</member>
<member name="mesh_transform_wall_south" type="Transform2D" setter="mesh_transform_wall_south_set" getter="mesh_transform_wall_south_get" default="Transform2D( 1, 0, 0, 1, 0, 0 )">
</member>
<member name="mesh_transform_wall_west" type="Transform2D" setter="mesh_transform_wall_west_set" getter="mesh_transform_wall_west_get" default="Transform2D( 1, 0, 0, 1, 0, 0 )">
</member>
<member name="player" type="Node2D" 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="voxel_structures" type="Array" setter="voxel_structures_set" getter="voxel_structures_get" default="[ ]">
</member>
</members>
<signals>
<signal name="chunk_added">
<argument index="0" name="chunk" type="Terrain2DChunk" />
<description>
</description>
</signal>
<signal name="chunk_mesh_generation_finished">
<argument index="0" name="chunk" type="Terrain2DChunk" />
<description>
</description>
</signal>
<signal name="chunk_removed">
<argument index="0" name="chunk" type="Terrain2DChunk" />
<description>
</description>
</signal>
<signal name="generation_finished">
<description>
</description>
</signal>
</signals>
<constants>
<constant name="CHANNEL_TYPE_INFO_TYPE" value="0" enum="ChannelTypeInfo">
</constant>
<constant name="CHANNEL_TYPE_INFO_ISOLEVEL" value="1" enum="ChannelTypeInfo">
</constant>
<constant name="CHANNEL_TYPE_INFO_LIQUID_FLOW" value="2" enum="ChannelTypeInfo">
</constant>
<constant name="NOTIFICATION_ACTIVE_STATE_CHANGED" value="9000">
</constant>
</constants>
</class>