wired switches and doors
This commit is contained in:
parent
ee7d36e72b
commit
bc4976b324
16 changed files with 2575 additions and 835 deletions
|
|
@ -59,5 +59,23 @@ function getAllAssets()
|
|||
end
|
||||
end
|
||||
|
||||
-- Wired devices intentionally reuse the familiar switch/door artwork. Their
|
||||
-- white terminal marker is drawn by the entity class, while these synthetic
|
||||
-- asset records make them available to the ordinary palette and brush.
|
||||
local function synthetic(name, source, behavior)
|
||||
local original = globalAssetProperties[source]
|
||||
if not original then return end
|
||||
globalAssetProperties[name] = {
|
||||
directory = original.directory,
|
||||
sprites = original.sprites,
|
||||
cells = original.cells,
|
||||
class = behavior,
|
||||
preload = false,
|
||||
synthetic = true,
|
||||
}
|
||||
end
|
||||
synthetic("wired_switch", "switch", "wired_switch")
|
||||
synthetic("wired_door", "door", "wired_door")
|
||||
|
||||
return BoxVariants.addTo(globalAssetProperties)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue