--[[
	Returns the room associated with the window
]]

function RoomManager.getRoomByWindow(windowPart)
	local rooms = RoomManager.getRooms()

	return TableUtils.find(
		rooms,
		function(room)
			if room:hasWindow(windowPart) then
				return true
			end
		end
	)
end
