GameTaskManager.ProgressFlagSync
A private static class in Root.Township, the global namespace. Reach it through att-stubs' publicized assemblies or Harmony's AccessTools.
Private helper on GameTaskManager that sends a player's completed achievements and micro tutorials when they join. The server writes, the client reads.
Properties
| Member | What it is |
|---|
static HashSet<PlayerProgressFlag> Completed { get; } | Shared set of flags being written or read. |
Methods
| Member | What it is |
|---|
static void Serialize(IPlayer player, Stream stream) | Handler for the task initialize message: writes the player's completed flags, or reads them on a client. |
3 private and internal methods
| Member | What it is |
|---|
private static void ReadProgressFlags(Stream stream, int count) | Client: reads the flags and marks each achievement or micro tutorial complete for the local player. |
private static int UpdateItemCount(IPlayer player, Stream stream) | Server: fills Completed from the player's tracker and returns the count. |
private static void WriteProgressFlags(Stream stream, HashSet<PlayerProgressFlag> flags) | Writes each flag to the stream, then clears the set. |