mirror of
https://github.com/godotengine/godot.git
synced 2024-11-24 21:22:48 +00:00
Update class reference to include some keywords
More should be added in future PRs, wherever there is demand.
This commit is contained in:
parent
db798b29b2
commit
5911a12db1
@ -1080,7 +1080,7 @@
|
|||||||
[b]Note:[/b] This function is called automatically when the project is run. If you need to fix the seed to have consistent, reproducible results, use [method seed] to initialize the random number generator.
|
[b]Note:[/b] This function is called automatically when the project is run. If you need to fix the seed to have consistent, reproducible results, use [method seed] to initialize the random number generator.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="remap">
|
<method name="remap" keywords="range, lerp">
|
||||||
<return type="float" />
|
<return type="float" />
|
||||||
<param index="0" name="value" type="float" />
|
<param index="0" name="value" type="float" />
|
||||||
<param index="1" name="istart" type="float" />
|
<param index="1" name="istart" type="float" />
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" ?>
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
<class name="Area2D" inherits="CollisionObject2D" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
|
<class name="Area2D" inherits="CollisionObject2D" keywords="trigger" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
|
||||||
<brief_description>
|
<brief_description>
|
||||||
A region of 2D space that detects other [CollisionObject2D]s entering or exiting it.
|
A region of 2D space that detects other [CollisionObject2D]s entering or exiting it.
|
||||||
</brief_description>
|
</brief_description>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" ?>
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
<class name="Area3D" inherits="CollisionObject3D" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
|
<class name="Area3D" inherits="CollisionObject3D" keywords="trigger" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
|
||||||
<brief_description>
|
<brief_description>
|
||||||
A region of 3D space that detects other [CollisionObject3D]s entering or exiting it.
|
A region of 3D space that detects other [CollisionObject3D]s entering or exiting it.
|
||||||
</brief_description>
|
</brief_description>
|
||||||
|
@ -332,7 +332,7 @@
|
|||||||
Returns the script associated with a typed array tied to a class name.
|
Returns the script associated with a typed array tied to a class name.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="has" qualifiers="const">
|
<method name="has" qualifiers="const" keywords="includes, contains">
|
||||||
<return type="bool" />
|
<return type="bool" />
|
||||||
<param index="0" name="value" type="Variant" />
|
<param index="0" name="value" type="Variant" />
|
||||||
<description>
|
<description>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" ?>
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
<class name="DirAccess" inherits="RefCounted" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
|
<class name="DirAccess" inherits="RefCounted" keywords="directory, path, folder" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
|
||||||
<brief_description>
|
<brief_description>
|
||||||
Provides methods for managing directories and their content.
|
Provides methods for managing directories and their content.
|
||||||
</brief_description>
|
</brief_description>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" ?>
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
<class name="InputEventMouseButton" inherits="InputEventMouse" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
|
<class name="InputEventMouseButton" inherits="InputEventMouse" keywords="click, press" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
|
||||||
<brief_description>
|
<brief_description>
|
||||||
Represents a mouse button being pressed or released.
|
Represents a mouse button being pressed or released.
|
||||||
</brief_description>
|
</brief_description>
|
||||||
|
@ -722,7 +722,7 @@
|
|||||||
Calls [method Object.notification] with [param what] on this node and all of its children, recursively.
|
Calls [method Object.notification] with [param what] on this node and all of its children, recursively.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="queue_free">
|
<method name="queue_free" keywords="delete, remove, kill, die">
|
||||||
<return type="void" />
|
<return type="void" />
|
||||||
<description>
|
<description>
|
||||||
Queues this node to be deleted at the end of the current frame. When deleted, all of its children are deleted as well, and all references to the node and its children become invalid.
|
Queues this node to be deleted at the end of the current frame. When deleted, all of its children are deleted as well, and all references to the node and its children become invalid.
|
||||||
|
@ -623,7 +623,7 @@
|
|||||||
[b]Note:[/b] In C#, [param signal] must be in snake_case when referring to built-in Godot signals. Prefer using the names exposed in the [code]SignalName[/code] class to avoid allocating a new [StringName] on each call.
|
[b]Note:[/b] In C#, [param signal] must be in snake_case when referring to built-in Godot signals. Prefer using the names exposed in the [code]SignalName[/code] class to avoid allocating a new [StringName] on each call.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="free">
|
<method name="free" keywords="delete, remove, kill, die">
|
||||||
<return type="void" />
|
<return type="void" />
|
||||||
<description>
|
<description>
|
||||||
Deletes the object from memory. Pre-existing references to the object become invalid, and any attempt to access them will result in a run-time error. Checking the references with [method @GlobalScope.is_instance_valid] will return [code]false[/code].
|
Deletes the object from memory. Pre-existing references to the object become invalid, and any attempt to access them will result in a run-time error. Checking the references with [method @GlobalScope.is_instance_valid] will return [code]false[/code].
|
||||||
|
@ -88,7 +88,7 @@
|
|||||||
Returns the [SceneState] representing the scene file contents.
|
Returns the [SceneState] representing the scene file contents.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="instantiate" qualifiers="const">
|
<method name="instantiate" qualifiers="const" keywords="create, make, spawn, new">
|
||||||
<return type="Node" />
|
<return type="Node" />
|
||||||
<param index="0" name="edit_state" type="int" enum="PackedScene.GenEditState" default="0" />
|
<param index="0" name="edit_state" type="int" enum="PackedScene.GenEditState" default="0" />
|
||||||
<description>
|
<description>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" ?>
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
<class name="PhysicalBone2D" inherits="RigidBody2D" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
|
<class name="PhysicalBone2D" inherits="RigidBody2D" keywords="ragdoll" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
|
||||||
<brief_description>
|
<brief_description>
|
||||||
A [RigidBody2D]-derived node used to make [Bone2D]s in a [Skeleton2D] react to physics.
|
A [RigidBody2D]-derived node used to make [Bone2D]s in a [Skeleton2D] react to physics.
|
||||||
</brief_description>
|
</brief_description>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" ?>
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
<class name="PhysicalBone3D" inherits="PhysicsBody3D" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
|
<class name="PhysicalBone3D" inherits="PhysicsBody3D" keywords="ragdoll" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
|
||||||
<brief_description>
|
<brief_description>
|
||||||
A physics body used to make bones in a [Skeleton3D] react to physics.
|
A physics body used to make bones in a [Skeleton3D] react to physics.
|
||||||
</brief_description>
|
</brief_description>
|
||||||
|
@ -41,7 +41,7 @@
|
|||||||
</constructor>
|
</constructor>
|
||||||
</constructors>
|
</constructors>
|
||||||
<methods>
|
<methods>
|
||||||
<method name="begins_with" qualifiers="const">
|
<method name="begins_with" qualifiers="const" keywords="starts_with">
|
||||||
<return type="bool" />
|
<return type="bool" />
|
||||||
<param index="0" name="text" type="String" />
|
<param index="0" name="text" type="String" />
|
||||||
<description>
|
<description>
|
||||||
@ -126,7 +126,7 @@
|
|||||||
[/codeblock]
|
[/codeblock]
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="contains" qualifiers="const">
|
<method name="contains" qualifiers="const" keywords="includes, has">
|
||||||
<return type="bool" />
|
<return type="bool" />
|
||||||
<param index="0" name="what" type="String" />
|
<param index="0" name="what" type="String" />
|
||||||
<description>
|
<description>
|
||||||
|
Loading…
Reference in New Issue
Block a user