Fix and update LoadToEntity API wrapper

This commit is contained in:
David Vogel 2022-07-19 18:26:34 +02:00
parent 926aa5bca8
commit 9f4aa9b038

View File

@ -145,11 +145,12 @@ function EntityAPI.LoadCameraBound(filename, posX, posY)
return EntityLoadCameraBound(filename, posX, posY)
end
---
---Creates a new entity from the given XML file, and attaches it to entity.
---This will not load tags and other stuff, it seems.
---@param filename string
---@param entity NoitaEntity
function EntityAPI.LoadToEntity(filename, entity)
return EntityLoadToEntity(filename, entity)
return EntityLoadToEntity(filename, entity.ID)
end
---