public PackReader(IPackCollection packCollection, IPackResourceManager packResourceManager, PackReaderSettings settings = null) { _packCollection = packCollection; _packResourceManager = packResourceManager; this.PackReaderSettings = settings ?? PackReaderSettings.DefaultPackReaderSettings; }
private Pack(IDataReader dataReader) { _dataReader = dataReader; this.ManifestedPack = dataReader.FileExists(PackConstImpl.FILE_OPTIMIZED_MARKERCATEGORIES); this.ResourceManager = new PackResourceManager(dataReader); }
public PointOfInterest(IPackResourceManager resourceManager, PointOfInterestType type, AttributeCollection explicitAttributes, PathingCategory rootPathingCategory) { this.ResourceManager = resourceManager; this.Type = type; this.ExplicitAttributes = explicitAttributes; Preprocess(rootPathingCategory); }
public static async Task <PointOfInterest> UnpackPathableAsync(NanoXmlNode pathableNode, IPackResourceManager pathableResourceManager, PathingCategory rootPathingCategory) { return(pathableNode.Name.ToLowerInvariant() switch { PackConstImpl.XML_ELEMENT_POI => await UnpackMarkerPoi(pathableNode, pathableResourceManager, rootPathingCategory), PackConstImpl.XML_ELEMENT_TRAIL => await UnpackTrailPoi(pathableNode, pathableResourceManager, rootPathingCategory), PackConstImpl.XML_ELEMENT_ROUTE => await UnpackRoutePoi(pathableNode, pathableResourceManager, rootPathingCategory), _ => await UnpackOtherPoi(pathableNode, pathableResourceManager, rootPathingCategory) });
private Trail(IPackResourceManager resourceManager, AttributeCollection explicitAttributes, PathingCategory rootPathingCategory) : base(resourceManager, PointOfInterestType.Trail, explicitAttributes, rootPathingCategory) /* NOOP */ }