Skip to main content

WipeManager

A class in Root.Township, the global namespace.

Saved singleton that remembers which chunks need a pre-wipe pass. ServerWipeManager loads and processes those chunks during a wipe.

Constructors​

MemberWhat it is
WipeManager()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

2 private and internal fields
MemberWhat it is
private HashSet<string> chunksToWipeSaved set of chunk identifiers to process before a wipe.
private static Logger loggerLogger for this class.

Methods​

MemberWhat it is
static IEnumerable<Chunk> ChunksToPreWipe() (iterator)Yields the loaded Chunk for each marked identifier, logging any it can't find. Empty if there's no instance.
static void MarkNeedingPreWipeOperation(Chunk chunk)Adds a chunk's identifier to the pre-wipe list. TradeVendor and CommunalStorage call it.