Модуль:Entity Sprite/all: различия между версиями

Нет описания правки
Нет описания правки
Строка 2: Строка 2:
local JsonPaths = require('Module:JsonPaths')
local JsonPaths = require('Module:JsonPaths')
local prefix = JsonPaths.prefixFile()
local prefix = JsonPaths.prefixFile()
local function shouldIncludeEntry(entry, whitelistSet, blacklistSet)
local parents = getParents(entry)
if whitelistSet and not hasAnyParent(parents, whitelistSet) then
return false
end
if blacklistSet and hasAnyParent(parents, blacklistSet) then
return false
end
return true
end


local function filterSpriteData(spriteData, prototypeData, whitelistSet, blacklistSet, project)
local function filterSpriteData(spriteData, prototypeData, whitelistSet, blacklistSet, project)