LuaField already had a __hash function, but I replaced it with a more efficient one. This means that we now need to test the Atlantean scenario and Trident of Fire on multiplayer.
The port spaces can be accessed like this:
for index, value in ipairs(map.port_spaces) do
print(index)
print("x: " .. value["x"])
print("y: " .. value["y"])
for key, val in pairs(value) do
print(key .. " " .. val)
end
end
I am done with my changes.
LuaField already had a __hash function, but I replaced it with a more efficient one. This means that we now need to test the Atlantean scenario and Trident of Fire on multiplayer.
The port spaces can be accessed like this:
for index, value in ipairs( map.port_ spaces) do
print(index)
print("x: " .. value["x"])
print("y: " .. value["y"])
for key, val in pairs(value) do
print(key .. " " .. val)
end
end