Aleksei-bird 7c9c708c92 Первый фикс
Пачки некоторых позиций увеличены
2024-03-01 20:54:33 +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