Room Sets - Generator Support
Timberjaw opened this issue ยท 1 comments
This involves determining an appropriate time to add a room set, measuring bounds to determine how much space is available for the set, and searching the database for room sets that will fit. Sets should be spaced either temporally or geographically. When a theme-enabled room is saved, palette-swapped versions should be saved as alternate files to allow for faster selection at generation time.
Concept reservation process:
- Once per chunk, select a random direction (NESW)
- Move out along the direction by a random number of chunks from 3-10
- Select 3 random room sets, ordered by volume
- Starting with the largest-volume set, check the surrounding chunks (around our randomly selected chunk) to see if they have been generated, proceeding outward until we can determine if enough room is available for the set. We must also check the existing reserved room list.
- If not enough room is available, and we have not yet checked all 3 random room sets, return to step 4 with the next set
- If enough room is available, reserve the volume.