Aleksei-bird 46d69f3a45 Исправлен мод heroturrets
Добавлен мод blueprint-sandboxes
Добавляет метку версии в zzzparanoidal (#72)
2024-08-16 10:59:17 +03:00

19 lines
455 B
Lua

-- Custom Planners to add/remove Resources
local Tiles = {}
Tiles.name = BPSB.pfx .. "sandbox-tiles"
Tiles.pfx = BPSB.pfx .. "sbt-"
local pfxLength = string.len(Tiles.pfx)
-- Whether the Thing is a Tile Planner
function Tiles.IsTilePlanner(name)
return string.sub(name, 1, pfxLength) == Tiles.pfx
end
-- Extract the Resource Name from a Tile Planner
function Tiles.GetResourceName(name)
return string.sub(name, pfxLength + 1)
end
return Tiles