aboutsummaryrefslogtreecommitdiff
path: root/src/objs
diff options
context:
space:
mode:
Diffstat (limited to 'src/objs')
-rw-r--r--src/objs/specks.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/objs/specks.lua b/src/objs/specks.lua
index 061f0fb..3ea7e43 100644
--- a/src/objs/specks.lua
+++ b/src/objs/specks.lua
@@ -188,6 +188,13 @@ function Speck_Sys:update(dt)
end
end
+function Speck_Sys:is_empty()
+ if self.data.size == 0 then
+ return true
+ end
+ return self.free_ids_size == self.data.size
+end
+
function Speck_Sys:draw()
local scale_curve = EASING_FUNCTIONS[self.scale_curve]
local data = self.data