Skip to content

Commit

Permalink
Add entity depth documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
jfperusse committed Aug 10, 2024
1 parent 5851cab commit 1d0a01b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/source/api/entity.rst
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,10 @@ entity
The number of children that this entity possesses

.. lua:attribute:: depth: integer
The depth of this entity in the hierarchy (roots have a depth of 0)

.. lua:method:: index(name) [metamethod]
Retrieves children with the supplied name using the property syntax (i.e. ``myEntity.theChildName``)
Expand Down

0 comments on commit 1d0a01b

Please sign in to comment.