Incorporation of local structure in continuous dislocation theory