From 4a250dbe188deedbdad3e9c22401ab5e4861b9f9 Mon Sep 17 00:00:00 2001 From: Austin Hicks Date: Thu, 24 Oct 2024 18:07:59 -0700 Subject: [PATCH] Rename some LuaLS types to match 2.0 --- scripts/scanner/backends/simple.lua | 2 +- scripts/scanner/backends/trees.lua | 2 +- scripts/scanner/surface-scanner.lua | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/scanner/backends/simple.lua b/scripts/scanner/backends/simple.lua index 7ba0c238..82e7676b 100644 --- a/scripts/scanner/backends/simple.lua +++ b/scripts/scanner/backends/simple.lua @@ -90,7 +90,7 @@ function SimpleBackend:on_new_entity(ent) self.known_entities[script.register_on_object_destroyed(ent)] = ent end ----@param event EventData.on_entity_destroyed +---@param event EventData.on_object_destroyed function SimpleBackend:on_entity_destroyed(event) self.known_entities[event.registration_number] = nil self.entry_cache[event.registration_number] = nil diff --git a/scripts/scanner/backends/trees.lua b/scripts/scanner/backends/trees.lua index ffb295b9..8b7f5916 100644 --- a/scripts/scanner/backends/trees.lua +++ b/scripts/scanner/backends/trees.lua @@ -53,7 +53,7 @@ function TreeBackend:on_new_entity(entity) table.insert(self.point_queue, { x = cx, y = cy }) end ----@param event EventData.on_entity_destroyed +---@param event EventData.on_object_destroyed function TreeBackend:on_entity_destroyed(event) end function TreeBackend:update_entry(player, e) diff --git a/scripts/scanner/surface-scanner.lua b/scripts/scanner/surface-scanner.lua index f9e23a2c..305119fd 100644 --- a/scripts/scanner/surface-scanner.lua +++ b/scripts/scanner/surface-scanner.lua @@ -316,7 +316,7 @@ local work_queue = WorkQueue.declare_work_queue({ idle_function = redispatch, }) ----@param event EventData.on_entity_destroyed +---@param event EventData.on_object_destroyed function mod.on_entity_destroyed(event) for _, s in pairs(surface_state) do if s.seen_entities:remove(event.registration_number) then