Skip to main content

TradeCommandModule

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

Console module trade: empties trade decks and sends spawned items to a player's post box. Play mode only.

Fields​

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

Methods​

5 private and internal methods
MemberWhat it is
private static void EmptyTradeDecks()Server: trade empty wipes and respawns every TradeVendor and concludes the postbox wipe.
private static async Task<PlayerPostboxStorage> GetContent(UserInfoAccess user)Loads a user's post box storage, logging an error if the user or content is missing.
private static async Task PostBox(UserInfoAccess user, NetworkPrefab prefab, params string[] arguments)Server: trade post spawns a non-kinematic prefab (with an optional count) and pushes it into the user's post box.
private static Task PostBoxString(UserInfoAccess user)Server: trade post-string spawns a saved-object string (or the clipboard) and pushes it into the user's post box if it is a loose pickup.
private static async Task PostBoxString(UserInfoAccess user, string value)Server: trade post-string spawns a saved-object string (or the clipboard) and pushes it into the user's post box if it is a loose pickup.