virtual async Task<TContent> GetContentAsync(IPlayer player) | Returns the player's content, loading it from their player data file first if needed. Waits on any load already in progress. |
async Task<TContent> GetContentAsync(int playerIdentifier, Player player = null, bool isCreatingNew = true) | Returns the player's content, loading it from their player data file first if needed. Waits on any load already in progress. |
TContent GetContentIfLoaded(Player player) | Returns the player's content only if it is already in memory, otherwise null. Does not load anything. |
TContent GetContentIfLoaded(int playerID) | Returns the player's content only if it is already in memory, otherwise null. Does not load anything. |
override void InitializeAsServer(SpawnData spawnData) | Server: registers the manager for autosave, which saves every loaded player's content. |
override async void OnConnected(Player player) | Server: starts loading the joining player's content. |
override void OnDisconnected(Player player) | Server: saves the leaving player's content and drops it from the cache. |