small tweaks
entities now has register bulk added docs to a function for sql module added table.count
This commit is contained in:
1 parent
82f9ff6c42
commit
9b44fcbc16
5 files changed
+78
-7
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user