Skip to main content

IPerPlayerContent<TSaveFormat>

An interface in Root.Township, the global namespace.

Server: data kept for one player and saved to its own file, managed by a PerPlayerManager.

Properties​

MemberWhat it is
IPlayer TargetPlayer { get; }The player this content belongs to.

Methods​

MemberWhat it is
Task LoadAsync(int playerIdentifier, IAltaFile file, IPlayer currentPlayer = null)Loads the content for a player from the given file.
void Save(bool isUnloading)Saves the content; the flag says it is being unloaded.