mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-14 17:17:41 +00:00
Added location_set:size method.
This commit is contained in:
parent
e8b58ddc28
commit
930cd8fe63
@ -17,6 +17,14 @@ function methods:empty()
|
||||
return next(self.values)
|
||||
end
|
||||
|
||||
function methods:size()
|
||||
local sz = 0
|
||||
for p,v in pairs(self.values) do
|
||||
sz = sz + 1
|
||||
end
|
||||
return sz
|
||||
end
|
||||
|
||||
function methods:clear()
|
||||
self.values = {}
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user