C# Class NetMud.DataAccess.FileSystem.PlayerData

Inheritance: FileAccessor
Afficher le fichier Open project: SwiftAusterity/NetMud Class Usage Examples

Méthodes publiques

Méthode Description
ArchiveCharacter ( ICharacter entity ) : void

Archive a character

LoadAllCharactersForAccountToCache ( string accountHandle ) : bool

Dumps everything of a single type into the cache from the filesystem for BackingData

RestorePlayer ( string accountHandle, long charID ) : IPlayer

Restores one character from their Current backup

WriteCharacter ( ICharacter entity ) : void

Write one character to its player current data

WriteOnePlayer ( IPlayer entity ) : bool

Writes one player out to disk

Private Methods

Méthode Description
GetCharacterFilename ( ICharacter entity ) : string

Gets the statically formatted filename for a player

GetPlayerFilename ( IPlayer entity ) : string

Gets the statically formatted filename for a player

GetPlayerFilename ( long charId ) : string
WritePlayer ( DirectoryInfo dir, IPlayer entity ) : void

Writes one player out (and only one character) and their inventory to Current and archives whatever used to be Current

Method Details

ArchiveCharacter() public méthode

Archive a character
public ArchiveCharacter ( ICharacter entity ) : void
entity ICharacter the thing to archive
Résultat void

LoadAllCharactersForAccountToCache() public méthode

Dumps everything of a single type into the cache from the filesystem for BackingData
public LoadAllCharactersForAccountToCache ( string accountHandle ) : bool
accountHandle string
Résultat bool

RestorePlayer() public méthode

Restores one character from their Current backup
public RestorePlayer ( string accountHandle, long charID ) : IPlayer
accountHandle string Global Account Handle for the account
charID long Which character to load
Résultat IPlayer

WriteCharacter() public méthode

Write one character to its player current data
public WriteCharacter ( ICharacter entity ) : void
entity ICharacter the char to write
Résultat void

WriteOnePlayer() public méthode

Writes one player out to disk
public WriteOnePlayer ( IPlayer entity ) : bool
entity IPlayer
Résultat bool