public static ResourceData ToResourceData(Resource r)
 {
     var ret = new ResourceData() {
         ResourceID = r.ResourceID,
         InternalName = r.InternalName,
         ResourceType = r.TypeID,
         Dependencies = r.ResourceDependencies.Select(x => x.NeedsInternalName).ToList(),
         FeaturedOrder = r.FeaturedOrder,
     };
     return ret;
 }
 public static ResourceData ToResourceData(Resource r)
 {
     var ret = new ResourceData() {
         ResourceID = r.ResourceID,
         InternalName = r.InternalName,
         ResourceType = r.TypeID,
         Dependencies = r.ResourceDependencies.Select(x => x.NeedsInternalName).ToList(),
         MapIs1v1 = r.MapIs1v1,
         MapIsTeams = r.MapIsTeams,
         MapIsFfa = r.MapIsFfa,
         MapIsSpecial = r.MapIsSpecial,
         MapSupportLevel = r.MapSupportLevel
     };
     return ret;
 }