using System;
using System.Collections.Generic;
using RynthNav.Routing;
namespace RynthCore.Plugin.RynthNav;
///
/// What a goto (or the panel's Route, or the arrow's route) may use, and the plan: the switches,
/// where you stand, and what the land allows, in one place. Host-free: the route tests drive it.
/// - "Use portals and recalls" off: walking only. Route and Go both respect it (Route used to plan
/// with portals either way).
/// - "Recalls" is part of that: it only counts when "Use portals and recalls" is on.
/// - In a dungeon (no map position) there is no walking start: the route must begin with a recall
/// (your dungeon's coordinates aren't map coordinates; 10-01 a route "walked" from 0,0 to a
/// portal at 86S). With no recall to cast, it refuses and says why.
/// - Walks between landmasses are left out (canWalk); a target only reachable over water needs a
/// portal, a recall or the Town Network.
/// - Bans: teleports this plan may not take (PortalRoute's keys): portals the server would refuse
/// this character (PortalRules), and ones it has refused already.
/// - Options: up to that many different ways (PortalRoute.PlanOptions), cheapest first; the first is
/// the plan itself. "Another way" in the panel and /rnav route next walk through them.
/// - walkCost: walks costed on the route graph (PortalRoute's real walk costs); null = straight lines.
/// - times: teleports costed by how long they take (TripTimes); null = the flat costs.
///
internal static class TravelPlan
{
public sealed class Result
{
/// The legs; null = walk straight there (no teleport helps, or none may be used).
public List? Steps;
public double Est;
public int Teleports;
/// Why there is no way at all ("" = there is one: Steps, or a plain walk).
public string Refusal = "";
/// One line on what was allowed, for the log.
public string Basis = "";
/// The ways there, cheapest first (Options[0] is this plan); empty when there is none.
public readonly List