cityGen.package
This package holds more than this page lists. See all of its files in its world.
README.md
query
This module provides functions for a game to query its city plan, using the baked plan record generated by cityGen.export. It operates purely in Luau over the plan's columnar data, ensuring consistent behavior across edit, play, server, and test environments without interacting with the graph or engine directly. It offers methods to find districts, edges, lanes, lots, and blocks at specific coordinates, retrieve detailed information about them, find nearby lots, list lots on a given edge, and generate random pavement points. It also includes a pathfinding function to route between two points on the road network and a function to return the drivable graph in a format suitable for pathNetwork. It is called by game logic that needs to access and interpret the generated city layout.