Exemple #1
0
        public PackReader(IPackCollection packCollection, IPackResourceManager packResourceManager, PackReaderSettings settings = null)
        {
            _packCollection      = packCollection;
            _packResourceManager = packResourceManager;

            this.PackReaderSettings = settings ?? PackReaderSettings.DefaultPackReaderSettings;
        }
Exemple #2
0
        private Pack(IDataReader dataReader)
        {
            _dataReader = dataReader;

            this.ManifestedPack = dataReader.FileExists(PackConstImpl.FILE_OPTIMIZED_MARKERCATEGORIES);

            this.ResourceManager = new PackResourceManager(dataReader);
        }
Exemple #3
0
        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)
     });
Exemple #5
0
 private Trail(IPackResourceManager resourceManager, AttributeCollection explicitAttributes, PathingCategory rootPathingCategory)
     : base(resourceManager, PointOfInterestType.Trail, explicitAttributes, rootPathingCategory) /* NOOP */ }