Skip to main content

ProgressCommandModule

A static class in Root.Township, Alta.Console.Commands.

Console module progress: server commands that skip world progression, such as finishing repair boxes, filling books, forging blades and generating caves. Server and play mode only.

Fields​

1 private and internal field
MemberWhat it is
private static Logger loggerNLog logger for this module.

Methods​

MemberWhat it is
static async Task<ICaveLayer> GenerateCavesTo(int layer, Action<string> debugCallback = null)progress generatecaves: loads, saves and unloads each cave layer up to the given one (max 100), then leaves that layer loaded and returns it.
11 private and internal methods
MemberWhat it is
private static bool ConnectTeleporter(ICaveLayer caveLayer)Finds the cave teleporter on a cave layer's chunk and tells it to update its layer link. Used by RepairTeleportersTo.
private static void FillBook(PageCollection collection)progress fill-book: adds every page of one page collection to the global pages.
private static void FillBooks()progress fill-books: adds every page of every page collection, skipping pages disabled on simple servers there.
private static void FillCaveTeleporter(int layer, int fuelQuantity)progress fillcaveteleporter: adds fuel to the cave teleporter for a built layer.
private static void FillCommunityBoxes()progress fillcommunityboxes: fills every CommunalStorage in the scene and clears interaction trackers.
private static void FinishBoxes()progress finishboxes: calls the private Finish on every RepairBox in the scene by reflection.
private static void ForgeAll()progress forgeall: force-completes every ForgedModel in the scene with effects.
private static IEnumerable<HashedItemInfo> ListBooks()progress list-books: lists all page collections.
private static IEnumerable<ProgressCommandModule.CaveTeleporterDetails> ListCaveTeleporter()progress listcaveteleporter: lists each available cave teleporter layer with its fuel.
private static bool RepairTeleporter(ICaveLayer caveLayer)Finds the CaveTeleporterReplacer on a cave layer's chunk and swaps in the repaired teleporter. Used by RepairTeleportersTo.
private static async Task RepairTeleportersTo(int layer)progress repaircaveteleporters: loads each cave layer up to the given one and repairs and connects the teleporter every tenth floor.