Ejemplo n.º 1
0
        public static void UnpackPathable(XmlNode pathableNode, IPackFileSystemContext packContext, PathingCategory rootCategory)
        {
            switch (pathableNode.Name.ToLower())
            {
            case ELEMENT_POITYPE_POI:
                var newPoiMarker = new TacOMarkerPathable(pathableNode, packContext, rootCategory);

                if (newPoiMarker.SuccessfullyLoaded)
                {
                    GameService.Pathing.RegisterPathable(newPoiMarker);
                }
                else
                {
                    Console.WriteLine("Failed to load marker: ");
                    Console.WriteLine(string.Join("; ", pathableNode.Attributes.Select(s => ((XmlAttribute)s).Name + " = " + ((XmlAttribute)s).Value)));
                }
                break;

            case ELEMENT_POITYPE_TRAIL:
                var newPathTrail = new TacOTrailPathable(pathableNode, packContext, rootCategory);

                if (newPathTrail.SuccessfullyLoaded)
                {
                    GameService.Pathing.RegisterPathable(newPathTrail);
                }
                else
                {
                    Console.WriteLine("Failed to load trail: ");
                    Console.WriteLine(string.Join("; ", pathableNode.Attributes.Select(s => ((XmlAttribute)s).Name + " = " + ((XmlAttribute)s).Value)));
                }

                break;

            case ELEMENT_POITYPE_ROUTE:
                Console.WriteLine("Skipped loading route.");
                //RouteBuilder.UnpackNode(pathableNode);

                break;

            default:
                Console.WriteLine($"Tried to unpack '{pathableNode.Name}' as POI!");
                break;
            }
        }
Ejemplo n.º 2
0
 public AlwaysVisible_0(TacOMarkerPathable managedPathable) : base(managedPathable) /* NOOP */ }
 public ReappearOnMapChange_1(TacOMarkerPathable managedPathable) : base(managedPathable) /* NOOP */ }
Ejemplo n.º 4
0
 public OnlyVisibleBeforeActivation_3(TacOMarkerPathable managedPathable) : base(managedPathable) /* NOOP */ }
Ejemplo n.º 5
0
 public ReappearAfterTimer_4(TacOMarkerPathable managedPathable) : base(managedPathable) /* NOOP */ }
 public ReappearOnDailyReset_2(TacOMarkerPathable managedPathable) : base(managedPathable) /* NOOP */ }