use class() in more places
This commit is contained in:
@@ -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 = {}
|
||||
|
||||
Reference in New Issue
Block a user