isaacscript-common 1.0.547 → 1.0.548
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
2
|
require("lualib_bundle");
|
|
3
3
|
local ____exports = {}
|
|
4
|
-
local _____2E_2E = require("index")
|
|
5
|
-
local clearSprite = _____2E_2E.clearSprite
|
|
6
4
|
local ____gridEntityXMLMap = require("maps.gridEntityXMLMap")
|
|
7
5
|
local GRID_ENTITY_XML_MAP = ____gridEntityXMLMap.GRID_ENTITY_XML_MAP
|
|
8
6
|
local ____roomShapeToTopLeftWallGridIndexMap = require("maps.roomShapeToTopLeftWallGridIndexMap")
|
|
@@ -10,6 +8,8 @@ local DEFAULT_TOP_LEFT_WALL_GRID_INDEX = ____roomShapeToTopLeftWallGridIndexMap.
|
|
|
10
8
|
local ROOM_SHAPE_TO_TOP_LEFT_WALL_GRID_INDEX_MAP = ____roomShapeToTopLeftWallGridIndexMap.ROOM_SHAPE_TO_TOP_LEFT_WALL_GRID_INDEX_MAP
|
|
11
9
|
local ____rooms = require("functions.rooms")
|
|
12
10
|
local roomUpdateSafe = ____rooms.roomUpdateSafe
|
|
11
|
+
local ____sprite = require("functions.sprite")
|
|
12
|
+
local clearSprite = ____sprite.clearSprite
|
|
13
13
|
function ____exports.getTopLeftWallGridIndex(self)
|
|
14
14
|
local game = Game()
|
|
15
15
|
local room = game:GetRoom()
|
|
@@ -5,9 +5,9 @@ local ____constants = require("constants")
|
|
|
5
5
|
local EMPTY_PNG_PATH = ____constants.EMPTY_PNG_PATH
|
|
6
6
|
function ____exports.clearSprite(self, sprite, ...)
|
|
7
7
|
local layerIDs = {...}
|
|
8
|
+
local numLayers = sprite:GetLayerCount()
|
|
8
9
|
if #layerIDs == 0 then
|
|
9
10
|
layerIDs = {}
|
|
10
|
-
local numLayers = sprite:GetLayerCount()
|
|
11
11
|
do
|
|
12
12
|
local i = 0
|
|
13
13
|
while i < numLayers do
|