small tweaks

entities now has register bulk
added docs to a function for sql module
added table.count
This commit is contained in:
gononono64 committed 2025-06-22 17:40:41 -05:00
1 parent 82f9ff6c42
commit 9b44fcbc16
5 files changed
+78 -7

No files matched your search

+9 -1
View File
@@ -71,7 +71,7 @@ end
Table.FindFirstUnoccupiedSlot = function(tbl)
local occupiedSlots = {}
for _, v in pairs(tbl) do
if v.slot then
if v.slot then
occupiedSlots[v.slot] = true
end
end
@@ -126,5 +126,13 @@ Table.Compare = function(a, b)
end
end
Table.Count = function(tbl)
local count = 0
for _ in pairs(tbl) do
count = count + 1
end
return count
end
exports("Table", Table)
return Table