use class() in more places

This commit is contained in:
binarycat
2022-03-16 21:01:04 -04:00
parent fa62e1428b
commit 8edcbe2d9b
10 changed files with 35 additions and 45 deletions

View File

@@ -1,8 +1,7 @@
Candelabra = {}
Candelabra.type = "Candelabra"
Candelabra.supertype = Decoration.type
Candelabra.display = Animation:new(animation.decoration.candelabra)
setmetatable(Candelabra, Decoration)
Candelabra = class(Decoration, {
type = "Candelabra",
display = Animation:new(animation.decoration.candelabra),
})
function Candelabra:new(x,y)
local light_data = {}