Re-extracted class docs.

This commit is contained in:
Relintai 2024-03-27 08:06:09 +01:00
parent 34603315e4
commit a58eba6277
5 changed files with 107 additions and 2 deletions

View File

@ -10,6 +10,11 @@
<link>$DOCS_URL/tutorials/physics/ray-casting.md</link>
</tutorials>
<methods>
<method name="get_vertex_lights_2d_map">
<return type="RID" />
<description>
</description>
</method>
</methods>
<members>
<member name="canvas" type="RID" setter="" getter="get_canvas">

View File

@ -494,6 +494,8 @@
The quadrant size does not apply on Y-sorted layers, as tiles are be grouped by Y position instead in that case.
[b]Note:[/b] As quadrants are created according to the map's coordinate system, the quadrant's "square shape" might not look like square in the LayeredTileMap's local coordinate system.
</member>
<member name="use_vertex_lights" type="bool" setter="set_use_vertex_lights" getter="get_use_vertex_lights" default="false">
</member>
</members>
<signals>
<signal name="changed">

View File

@ -9,14 +9,20 @@
<methods>
</methods>
<members>
<member name="color" type="Color" setter="set_color" getter="get_color" default="Color( 0, 0, 0, 1 )">
<member name="attenuation" type="float" setter="set_attenuation" getter="get_attenuation" default="1.0">
</member>
<member name="color" type="Color" setter="set_color" getter="get_color" default="Color( 1, 1, 1, 1 )">
</member>
<member name="enabled" type="bool" setter="set_enabled" getter="get_is_enabled" default="true">
</member>
<member name="item_cull_mask" type="int" setter="set_item_cull_mask" getter="get_item_cull_mask" default="1">
</member>
<member name="layer_range" type="Vector2i" setter="set_layer_range" getter="get_layer_range" default="Vector2i( 0, 0 )">
<member name="layer_range" type="Vector2i" setter="set_layer_range" getter="get_layer_range" default="Vector2i( -512, 512 )">
</member>
<member name="mode" type="int" setter="set_mode" getter="get_mode" enum="VertexLight2D.VertexLight2DMode" default="0">
</member>
<member name="range" type="Vector2i" setter="set_range" getter="get_range" default="Vector2i( 32, 32 )">
</member>
<member name="z_range" type="Vector2i" setter="set_z_range" getter="get_z_range" default="Vector2i( -1024, 1024 )">
</member>
</members>

View File

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="VertexLight2DEnvironment" inherits="Node2D" version="4.3">
<brief_description>
</brief_description>
<description>
</description>
<tutorials>
</tutorials>
<methods>
</methods>
<members>
<member name="color" type="Color" setter="set_color" getter="get_color" default="Color( 0, 0, 0, 1 )">
</member>
<member name="enabled" type="bool" setter="set_enabled" getter="get_is_enabled" default="true">
</member>
</members>
<constants>
</constants>
</class>

View File

@ -7,6 +7,11 @@
<tutorials>
</tutorials>
<methods>
<method name="flush_notifications">
<return type="void" />
<description>
</description>
</method>
<method name="free">
<return type="void" />
<argument index="0" name="rid" type="RID" />
@ -23,12 +28,24 @@
<description>
</description>
</method>
<method name="light_get_attenuation">
<return type="float" />
<argument index="0" name="light" type="RID" />
<description>
</description>
</method>
<method name="light_get_color">
<return type="Color" />
<argument index="0" name="light" type="RID" />
<description>
</description>
</method>
<method name="light_get_is_enabled">
<return type="bool" />
<argument index="0" name="light" type="RID" />
<description>
</description>
</method>
<method name="light_get_item_cull_mask">
<return type="int" />
<argument index="0" name="light" type="RID" />
@ -59,12 +76,25 @@
<description>
</description>
</method>
<method name="light_get_range">
<return type="Vector2i" />
<argument index="0" name="light" type="RID" />
<description>
</description>
</method>
<method name="light_get_z_range">
<return type="Vector2i" />
<argument index="0" name="light" type="RID" />
<description>
</description>
</method>
<method name="light_set_attenuation">
<return type="void" />
<argument index="0" name="light" type="RID" />
<argument index="1" name="attenuation" type="float" />
<description>
</description>
</method>
<method name="light_set_color">
<return type="void" />
<argument index="0" name="light" type="RID" />
@ -72,6 +102,13 @@
<description>
</description>
</method>
<method name="light_set_enabled">
<return type="void" />
<argument index="0" name="light" type="RID" />
<argument index="1" name="enabled" type="bool" />
<description>
</description>
</method>
<method name="light_set_item_cull_mask">
<return type="void" />
<argument index="0" name="light" type="RID" />
@ -107,6 +144,13 @@
<description>
</description>
</method>
<method name="light_set_range">
<return type="void" />
<argument index="0" name="light" type="RID" />
<argument index="1" name="range" type="Vector2i" />
<description>
</description>
</method>
<method name="light_set_z_range">
<return type="void" />
<argument index="0" name="light" type="RID" />
@ -125,6 +169,12 @@
<description>
</description>
</method>
<method name="map_get_base_color" qualifiers="const">
<return type="Color" />
<argument index="0" name="map" type="RID" />
<description>
</description>
</method>
<method name="map_get_lights" qualifiers="const">
<return type="Array" />
<argument index="0" name="map" type="RID" />
@ -137,6 +187,13 @@
<description>
</description>
</method>
<method name="map_set_base_color">
<return type="void" />
<argument index="0" name="map" type="RID" />
<argument index="1" name="base_color" type="Color" />
<description>
</description>
</method>
<method name="map_set_quadrant_size">
<return type="void" />
<argument index="0" name="map" type="RID" />
@ -144,6 +201,15 @@
<description>
</description>
</method>
<method name="sample_light">
<return type="Color" />
<argument index="0" name="map" type="RID" />
<argument index="1" name="position" type="Vector2" />
<argument index="2" name="item_cull_mask" type="int" default="1" />
<argument index="3" name="layer" type="int" default="0" />
<description>
</description>
</method>
<method name="set_default_quadrant_size">
<return type="void" />
<argument index="0" name="size" type="Vector2i" />
@ -151,6 +217,13 @@
</description>
</method>
</methods>
<signals>
<signal name="map_changed">
<argument index="0" name="map" type="RID" />
<description>
</description>
</signal>
</signals>
<constants>
<constant name="VERTEX_LIGHT_2D_MODE_ADD" value="0" enum="VertexLight2DMode">
</constant>