
         /[6]
      [2]  /
   [5][1][3]
   /  [4]
  [7]/

getRandomRoom(DungeonRoom[] neighbors)

Terms:
1. If 2 rooms have adjacent doorways, the rooms are connected

Rules:
1. A room MUST have at least 1 doorway adjacent to a neighboring doorway
2. Any given pair of connected rooms MUST have at least 3 walls with connected doorways total
	- Example: [1] and [3] are connected on their E and W walls respectively.
	  	To meet this condition [1] must have an additional connected
		doorway on the N,S, or W wall, OR [3] must have an additional
		connected doorway on the N,S, or E wall
	- This requirement allows for dead-end rooms, but does not allow for dead-end pairs
	- Note that this will NOT prevent larger dead-end regions. For example,
		if [5][1][3] contains doorways on 5E,1W,1E, and 3W, each pair
		has 3 connected doorways, but the 3 rooms together form an
		orphaned region
3. Rooms with adjacent UP/DOWN doorways MUST have a connecting doorway
4. A higher incidence of connected rooms SHOULD be weighted to decrease the chance of dead-ends

New library room schema:

id,filename,title,
door_n,door_e,door_s,door_w,door_nne,door_ene,door_nnw,door_enw,door_sse,door_ese,door_ssw,door_wsw

New room schema:

world,x,y,z,room_id,set_id,type,theme,loaded,path_n,path_e,path_s,path_w

- SELECT * FROM rooms JOIN library_rooms ON rooms.room_id=library_rooms.id

Room types:
	BASIC
	PROCEDURAL
	SET
	BIOME

Room themes:
	STONE
	DUNGEON
	BRICK
	FROZEN
	WOOD

Set schema:

id,name,size_x,size_y,size_z

Room-Set relation:

set_id,room_id,x,y,z


===================================================================

RPG ELEMENTS: https://gist.github.com/cb20dc4c4a1b8095884d

===================================================================

Website:

1. Library repository
	- Rooms
	- Widgets
	- Sets: spatially related rooms + widgets
	- Packs: loosely grouped collections of rooms, widgets, and sets
	- Curated and rated content
	- Optional automatic download to gameservers for generation
2. Wiki
3. Content browser / previews