doc: Sync classref with current source
This commit is contained in:
parent
3c7a39b40c
commit
fee29570d0
|
@ -20,7 +20,7 @@
|
|||
</argument>
|
||||
<argument index="2" name="b8" type="int">
|
||||
</argument>
|
||||
<argument index="3" name="a8" type="int">
|
||||
<argument index="3" name="a8" type="int" default="255">
|
||||
</argument>
|
||||
<description>
|
||||
Returns a 32 bit color with red, green, blue and alpha channels. Each channel has 8 bits of information ranging from 0 to 255.
|
||||
|
@ -38,7 +38,7 @@
|
|||
</return>
|
||||
<argument index="0" name="name" type="String">
|
||||
</argument>
|
||||
<argument index="1" name="alpha" type="float">
|
||||
<argument index="1" name="alpha" type="float" default="1.0">
|
||||
</argument>
|
||||
<description>
|
||||
Returns a color according to the standardised [code]name[/code] with [code]alpha[/code] ranging from 0 to 1.
|
||||
|
@ -1131,9 +1131,9 @@
|
|||
<method name="yield">
|
||||
<return type="GDScriptFunctionState">
|
||||
</return>
|
||||
<argument index="0" name="object" type="Object">
|
||||
<argument index="0" name="object" type="Object" default="null">
|
||||
</argument>
|
||||
<argument index="1" name="signal" type="String">
|
||||
<argument index="1" name="signal" type="String" default="""">
|
||||
</argument>
|
||||
<description>
|
||||
Stops the function execution and returns the current state. Call [method GDScriptFunctionState.resume] on the state to resume execution. This invalidates the state.
|
||||
|
|
|
@ -66,6 +66,16 @@
|
|||
Return the amount of surfaces that the [code]ArrayMesh[/code] holds.
|
||||
</description>
|
||||
</method>
|
||||
<method name="lightmap_unwrap">
|
||||
<return type="int" enum="Error">
|
||||
</return>
|
||||
<argument index="0" name="arg0" type="Transform">
|
||||
</argument>
|
||||
<argument index="1" name="arg1" type="float">
|
||||
</argument>
|
||||
<description>
|
||||
</description>
|
||||
</method>
|
||||
<method name="regen_normalmaps">
|
||||
<return type="void">
|
||||
</return>
|
||||
|
|
|
@ -12,6 +12,12 @@
|
|||
<demos>
|
||||
</demos>
|
||||
<methods>
|
||||
<method name="get_length" qualifiers="const">
|
||||
<return type="float">
|
||||
</return>
|
||||
<description>
|
||||
</description>
|
||||
</method>
|
||||
</methods>
|
||||
<constants>
|
||||
</constants>
|
||||
|
|
|
@ -56,6 +56,8 @@
|
|||
<member name="mix_target" type="int" setter="set_mix_target" getter="get_mix_target" enum="AudioStreamPlayer.MixTarget">
|
||||
If the audio configuration has more than two speakers, this sets the target channels. See [code]MIX_TARGET_*[/code] constants.
|
||||
</member>
|
||||
<member name="pitch_scale" type="float" setter="set_pitch_scale" getter="get_pitch_scale">
|
||||
</member>
|
||||
<member name="playing" type="bool" setter="_set_playing" getter="is_playing">
|
||||
If [code]true[/code] audio is playing.
|
||||
</member>
|
||||
|
|
|
@ -62,6 +62,8 @@
|
|||
<member name="max_distance" type="float" setter="set_max_distance" getter="get_max_distance">
|
||||
Maximum distance from which audio is still hearable.
|
||||
</member>
|
||||
<member name="pitch_scale" type="float" setter="set_pitch_scale" getter="get_pitch_scale">
|
||||
</member>
|
||||
<member name="playing" type="bool" setter="_set_playing" getter="is_playing">
|
||||
If [code]true[/code] audio is playing.
|
||||
</member>
|
||||
|
|
|
@ -86,6 +86,8 @@
|
|||
<member name="out_of_range_mode" type="int" setter="set_out_of_range_mode" getter="get_out_of_range_mode" enum="AudioStreamPlayer3D.OutOfRangeMode">
|
||||
Decides if audio should pause when source is outside of 'max_distance' range.
|
||||
</member>
|
||||
<member name="pitch_scale" type="float" setter="set_pitch_scale" getter="get_pitch_scale">
|
||||
</member>
|
||||
<member name="playing" type="bool" setter="_set_playing" getter="is_playing">
|
||||
If [code]true[/code], audio is playing.
|
||||
</member>
|
||||
|
|
|
@ -36,6 +36,12 @@
|
|||
Returns [code]true[/code] if the current host platform is using multiple threads.
|
||||
</description>
|
||||
</method>
|
||||
<method name="center_window">
|
||||
<return type="void">
|
||||
</return>
|
||||
<description>
|
||||
</description>
|
||||
</method>
|
||||
<method name="delay_msec" qualifiers="const">
|
||||
<return type="void">
|
||||
</return>
|
||||
|
@ -232,6 +238,12 @@
|
|||
Returns the number of cores available in the host machine.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_real_window_size" qualifiers="const">
|
||||
<return type="Vector2">
|
||||
</return>
|
||||
<description>
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_scancode_string" qualifiers="const">
|
||||
<return type="String">
|
||||
</return>
|
||||
|
@ -458,6 +470,12 @@
|
|||
If [code]true[/code], the [code]user://[/code] file system is persistent, so that its state is the same after a player quits and starts the game again. Relevant to the HTML5 platform, where this persistence may be unavailable.
|
||||
</description>
|
||||
</method>
|
||||
<method name="is_window_always_on_top" qualifiers="const">
|
||||
<return type="bool">
|
||||
</return>
|
||||
<description>
|
||||
</description>
|
||||
</method>
|
||||
<method name="kill">
|
||||
<return type="int" enum="Error">
|
||||
</return>
|
||||
|
@ -586,6 +604,14 @@
|
|||
Enables backup saves if [code]enabled[/code] is [code]true[/code].
|
||||
</description>
|
||||
</method>
|
||||
<method name="set_window_always_on_top">
|
||||
<return type="void">
|
||||
</return>
|
||||
<argument index="0" name="enabled" type="bool">
|
||||
</argument>
|
||||
<description>
|
||||
</description>
|
||||
</method>
|
||||
<method name="set_window_title">
|
||||
<return type="void">
|
||||
</return>
|
||||
|
|
|
@ -29,16 +29,6 @@
|
|||
Disconnect from host.
|
||||
</description>
|
||||
</method>
|
||||
<method name="set_no_delay">
|
||||
<return type="void">
|
||||
</return>
|
||||
<argument index="0" name="enabled" type="bool">
|
||||
</argument>
|
||||
<description>
|
||||
Disable Nagle algorithm to improve latency for small packets.
|
||||
Note that for applications that send large packets, or need to transfer a lot of data, this can reduce total bandwidth.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_connected_host" qualifiers="const">
|
||||
<return type="String">
|
||||
</return>
|
||||
|
@ -66,6 +56,16 @@
|
|||
<description>
|
||||
</description>
|
||||
</method>
|
||||
<method name="set_no_delay">
|
||||
<return type="void">
|
||||
</return>
|
||||
<argument index="0" name="enabled" type="bool">
|
||||
</argument>
|
||||
<description>
|
||||
Disable Nagle algorithm to improve latency for small packets.
|
||||
Note that for applications that send large packets, or need to transfer a lot of data, this can reduce total bandwidth.
|
||||
</description>
|
||||
</method>
|
||||
</methods>
|
||||
<constants>
|
||||
<constant name="STATUS_NONE" value="0" enum="Status">
|
||||
|
|
|
@ -302,7 +302,7 @@
|
|||
Amount of objects in frame.
|
||||
</constant>
|
||||
<constant name="RENDER_INFO_VERTICES_IN_FRAME" value="1" enum="RenderInfo">
|
||||
Amount of vertices in frame.
|
||||
Amount of vertices in frame.
|
||||
</constant>
|
||||
<constant name="RENDER_INFO_MATERIAL_CHANGES_IN_FRAME" value="2" enum="RenderInfo">
|
||||
Amount of material changes in frame.
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,53 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<class name="WebSocketClient" inherits="WebSocketMultiplayerPeer" category="Core" version="3.1-dev">
|
||||
<brief_description>
|
||||
</brief_description>
|
||||
<description>
|
||||
</description>
|
||||
<tutorials>
|
||||
</tutorials>
|
||||
<demos>
|
||||
</demos>
|
||||
<methods>
|
||||
<method name="connect_to_url">
|
||||
<return type="int" enum="Error">
|
||||
</return>
|
||||
<argument index="0" name="url" type="String">
|
||||
</argument>
|
||||
<argument index="1" name="protocols" type="PoolStringArray" default="PoolStringArray( )">
|
||||
</argument>
|
||||
<argument index="2" name="gd_mp_api" type="bool" default="false">
|
||||
</argument>
|
||||
<description>
|
||||
</description>
|
||||
</method>
|
||||
<method name="disconnect_from_host">
|
||||
<return type="void">
|
||||
</return>
|
||||
<description>
|
||||
</description>
|
||||
</method>
|
||||
</methods>
|
||||
<signals>
|
||||
<signal name="connection_closed">
|
||||
<description>
|
||||
</description>
|
||||
</signal>
|
||||
<signal name="connection_error">
|
||||
<description>
|
||||
</description>
|
||||
</signal>
|
||||
<signal name="connection_established">
|
||||
<argument index="0" name="protocol" type="String">
|
||||
</argument>
|
||||
<description>
|
||||
</description>
|
||||
</signal>
|
||||
<signal name="data_received">
|
||||
<description>
|
||||
</description>
|
||||
</signal>
|
||||
</signals>
|
||||
<constants>
|
||||
</constants>
|
||||
</class>
|
|
@ -0,0 +1,31 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<class name="WebSocketMultiplayerPeer" inherits="NetworkedMultiplayerPeer" category="Core" version="3.1-dev">
|
||||
<brief_description>
|
||||
</brief_description>
|
||||
<description>
|
||||
</description>
|
||||
<tutorials>
|
||||
</tutorials>
|
||||
<demos>
|
||||
</demos>
|
||||
<methods>
|
||||
<method name="get_peer" qualifiers="const">
|
||||
<return type="WebSocketPeer">
|
||||
</return>
|
||||
<argument index="0" name="peer_id" type="int">
|
||||
</argument>
|
||||
<description>
|
||||
</description>
|
||||
</method>
|
||||
</methods>
|
||||
<signals>
|
||||
<signal name="peer_packet">
|
||||
<argument index="0" name="peer_source" type="int">
|
||||
</argument>
|
||||
<description>
|
||||
</description>
|
||||
</signal>
|
||||
</signals>
|
||||
<constants>
|
||||
</constants>
|
||||
</class>
|
|
@ -0,0 +1,51 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<class name="WebSocketPeer" inherits="PacketPeer" category="Core" version="3.1-dev">
|
||||
<brief_description>
|
||||
</brief_description>
|
||||
<description>
|
||||
</description>
|
||||
<tutorials>
|
||||
</tutorials>
|
||||
<demos>
|
||||
</demos>
|
||||
<methods>
|
||||
<method name="close">
|
||||
<return type="void">
|
||||
</return>
|
||||
<description>
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_write_mode" qualifiers="const">
|
||||
<return type="int" enum="WebSocketPeer.WriteMode">
|
||||
</return>
|
||||
<description>
|
||||
</description>
|
||||
</method>
|
||||
<method name="is_connected_to_host" qualifiers="const">
|
||||
<return type="bool">
|
||||
</return>
|
||||
<description>
|
||||
</description>
|
||||
</method>
|
||||
<method name="set_write_mode">
|
||||
<return type="void">
|
||||
</return>
|
||||
<argument index="0" name="mode" type="int" enum="WebSocketPeer.WriteMode">
|
||||
</argument>
|
||||
<description>
|
||||
</description>
|
||||
</method>
|
||||
<method name="was_string_packet" qualifiers="const">
|
||||
<return type="bool">
|
||||
</return>
|
||||
<description>
|
||||
</description>
|
||||
</method>
|
||||
</methods>
|
||||
<constants>
|
||||
<constant name="WRITE_MODE_TEXT" value="0" enum="WriteMode">
|
||||
</constant>
|
||||
<constant name="WRITE_MODE_BINARY" value="1" enum="WriteMode">
|
||||
</constant>
|
||||
</constants>
|
||||
</class>
|
|
@ -0,0 +1,69 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<class name="WebSocketServer" inherits="WebSocketMultiplayerPeer" category="Core" version="3.1-dev">
|
||||
<brief_description>
|
||||
</brief_description>
|
||||
<description>
|
||||
</description>
|
||||
<tutorials>
|
||||
</tutorials>
|
||||
<demos>
|
||||
</demos>
|
||||
<methods>
|
||||
<method name="has_peer" qualifiers="const">
|
||||
<return type="bool">
|
||||
</return>
|
||||
<argument index="0" name="id" type="int">
|
||||
</argument>
|
||||
<description>
|
||||
</description>
|
||||
</method>
|
||||
<method name="is_listening" qualifiers="const">
|
||||
<return type="bool">
|
||||
</return>
|
||||
<description>
|
||||
</description>
|
||||
</method>
|
||||
<method name="listen">
|
||||
<return type="int" enum="Error">
|
||||
</return>
|
||||
<argument index="0" name="port" type="int">
|
||||
</argument>
|
||||
<argument index="1" name="protocols" type="PoolStringArray" default="PoolStringArray( )">
|
||||
</argument>
|
||||
<argument index="2" name="gd_mp_api" type="bool" default="false">
|
||||
</argument>
|
||||
<description>
|
||||
</description>
|
||||
</method>
|
||||
<method name="stop">
|
||||
<return type="void">
|
||||
</return>
|
||||
<description>
|
||||
</description>
|
||||
</method>
|
||||
</methods>
|
||||
<signals>
|
||||
<signal name="client_connected">
|
||||
<argument index="0" name="id" type="int">
|
||||
</argument>
|
||||
<argument index="1" name="protocol" type="String">
|
||||
</argument>
|
||||
<description>
|
||||
</description>
|
||||
</signal>
|
||||
<signal name="client_disconnected">
|
||||
<argument index="0" name="id" type="int">
|
||||
</argument>
|
||||
<description>
|
||||
</description>
|
||||
</signal>
|
||||
<signal name="data_received">
|
||||
<argument index="0" name="id" type="int">
|
||||
</argument>
|
||||
<description>
|
||||
</description>
|
||||
</signal>
|
||||
</signals>
|
||||
<constants>
|
||||
</constants>
|
||||
</class>
|
Loading…
Reference in New Issue