private static IEnumerable<HexReference> GetHexReferences(GameResourceManager gameResourceManager, XElement hexReferencesElement) { return hexReferencesElement.Elements() .Select(x => new HexReference { Id = int.Parse(x.Attribute("id").Value), Definition = gameResourceManager .GetHexSheet(x.Attribute("sheetName").Value) .Definitions[x.Attribute("name").Value] }); }