From 13e0a49eef12e008aa24159c4f52f8ec43d5cf2a Mon Sep 17 00:00:00 2001 From: shevernitskiy Date: Wed, 30 Aug 2023 12:48:36 +0300 Subject: [PATCH] Update docs/dev/Lua API.rst Co-authored-by: Myk --- docs/dev/Lua API.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/dev/Lua API.rst b/docs/dev/Lua API.rst index 0dac09a64..3f93a09b4 100644 --- a/docs/dev/Lua API.rst +++ b/docs/dev/Lua API.rst @@ -2606,8 +2606,9 @@ graphical tile id passed as the ``tile`` field in a `Pen `). Adding new textures to the vector is not difficult, but the game periodically deletes textures that are in the vector, and that's a problem since it invalidates the ``texpos`` value that used to point to that texture. -The ``texture`` module solves this problem. Instead of ``texpos`` directly, it operates on the ``TexposHandle`` entity, which is essentially a reference to ``texpos``. -Thanks to this handle, it is possible to get a valid ``texpos`` at any time. +The ``textures`` module solves this problem by providing a stable handle instead of a +raw ``texpos``. When we need to draw a particular tile, we can look up the current +``texpos`` value via the handle. * ``loadTileset(file, tile_px_w, tile_px_h)``