only mapPopulate empty db

This commit is contained in:
2024-03-18 19:06:37 -05:00
parent 989d33ff5e
commit 6b371066d4
247 changed files with 304770 additions and 62 deletions

View File

@ -1,6 +1,3 @@
<<<<<<< HEAD
local map = {
map_tiles = {
{"-", "-", "w", "w", "-", "-", "-", "-", "-", "-"},
@ -21,20 +18,18 @@ local map = {
x = h,
y = i,
occupied_by_type = self.map_tiles[h][i],
=======
local map = {
populate = function(self, map)
for h=1,100 do
for i=1,100 do
local tile = map:create({
x = h,
y = i,
occupied_by_type = "",
>>>>>>> refs/remotes/origin/master
occupied_by_id = ""
})
end
end
end,
mapExists = function(self, map)
local f = map:select("limit 1")
if not f[1] then
return false
else
return true
end
end
}
local tiles = {}