using System; using System.Collections.Generic; using System.Text; namespace Substrate.Core { /// /// An interface of basic manipulations on an abstract data store for player data. /// public interface IPlayerManager { /// /// Gets a object for the given player from the underlying data store. /// /// The name of the player to fetch. /// A object for the given player, or null if the player could not be found. Player GetPlayer (string name); /// /// Saves a object's data back to the underlying data store for the given player. /// /// The name of the player to write back data for. /// The object containing data to write back. void SetPlayer (string name, Player player); /// /// Checks if a player exists in the underlying data store. /// /// The name of the player to look up. /// True if player data was found; false otherwise. bool PlayerExists (string name); /// /// Deletes a player with the given name from the underlying data store. /// /// The name of the player to delete. void DeletePlayer (string name); } }