feat: index gfx according to their tagged action

This commit is contained in:
Kazhnuz 2021-08-07 12:02:28 +02:00
parent e30ab97e96
commit 5d157e5251

View file

@ -11,6 +11,10 @@ function GFX:new(world, x, y, z, spritename, creator, blockProcess, tag)
self.blockProcess = blockProcess or false
self.tag = tag or ""
if (not utils.string.isEmpty(self.tag)) then
self:setIndexName(self.tag)
end
self.direction = 1
end