Skip to content

Commit

Permalink
Update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
GsLogiMaker committed Feb 5, 2025
1 parent 01d19f8 commit 24c246c
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion cpp/src/doc_classes/GFEntity.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="GFEntity" inherits="RefCounted" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/godotengine/godot/master/doc/class.xsd">
<class name="GFEntity" inherits="RefCounted"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/godotengine/godot/master/doc/class.xsd">
<brief_description>
A reference to an entity from a [GFWorld].
</brief_description>
Expand Down Expand Up @@ -281,6 +282,13 @@
<param index="0" name="entity" type="Variant" />
<param index="1" name="second" type="Variant" default="null" />
<description>
Returns [code]true[/code] if this entity has [param entity] attached.
The component's type ID is coerced from a [Variant]. To learn more about [Variant] coercion see [method GFWorld.coerce_id].
[codeblock]
var entity = GFEntity.new()
entity.add(GFPosition2D)
entity.has(GFPosition2D) # true
[/codeblock]
</description>
</method>
<method name="has_child" qualifiers="const">
Expand Down

0 comments on commit 24c246c

Please sign in to comment.