Skip to main content

DebugQASetManager

A static class in Root.Township, the global namespace.

Server debug helper that spawns preset QA item sets for a player from StreamingAssets/DebugQASets.txt, four spawn commands per set. Used by a debugging console command.

Fields​

3 private and internal fields
MemberWhat it is
private static bool? hasFileCached result of the file check.
private static int maxIndexNumber of sets in the file.
private static Dictionary<int, int> userInfoIndexNext set to give each user ID.

Properties​

1 private and internal property
MemberWhat it is
private static string FilePath { get; }Path to DebugQASets.txt in streaming assets.

Methods​

MemberWhat it is
static int SpawnForUser(Player player, int overrideIndex)Spawns the given set, or the player's next one in turn, and moves them on to the next. Returns -1 without the file.
2 private and internal methods
MemberWhat it is
private static bool CheckForFile()Checks once whether the file exists and counts how many four-line sets it has.
private static async void SpawnForPlayer(Player player, int index)Runs spawn plus the player's name with each of the set's four lines, half a second apart.