public static void RegisterObjectWantsCrossRef(object wanter, string fieldName, string targetDefName)
 {
     DirectXmlCrossRefLoader.WantedRefForObject item = new DirectXmlCrossRefLoader.WantedRefForObject(wanter, wanter.GetType().GetField(fieldName), targetDefName);
     DirectXmlCrossRefLoader.wantedRefs.Add(item);
 }
 public static void RegisterObjectWantsCrossRef(object wanter, FieldInfo fi, string targetDefName)
 {
     DirectXmlCrossRefLoader.WantedRefForObject item = new DirectXmlCrossRefLoader.WantedRefForObject(wanter, fi, targetDefName);
     DirectXmlCrossRefLoader.wantedRefs.Add(item);
 }