csharp
public static class TravellingWhether somebody may go somewhere, and what to hand the realm if they may.
Remarks
Doc 28 § Travel, and the whole of it: "every one of them resolves to RequestTransfer, and the only thing this library adds is the fiction: the cost, the unlock, the requirement query, and the UI. That is the payoff of doc 27's protocol being one mechanism — a game adds a new way to travel by authoring a definition."
Methods (2)
public static TravelRefusal CanUse(TravelPoint point, DefId from, IRequirementContext? context)Whether a point can be used from where somebody is, and why not.
public static TravelRefusal Order(TravelPoint point, PlayerId player, DefId from, IRequirementContext? context, IReadOnlyDictionary<uint, long>? purse, out TransferOrder order)Works out what the realm is being asked to do.
Used by (2)
- TravelLibraryVixen.Gameplay.Travel
- TravelTestsVixen.Gameplay.Travel.Tests