I see. Ok, if you want a data structure to hold the map and have it accessible from many different places then you could perhaps store it in a Lua module and require that module from all scripts that need access to the structure of the map, for anything from Line of Sight calculations to path finding and so on.