C# 클래스 NetMud.DataAccess.FileSystem.PlayerData

상속: FileAccessor
파일 보기 프로젝트 열기: SwiftAusterity/NetMud 1 사용 예제들

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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

메소드 상세

ArchiveCharacter() 공개 메소드

Archive a character
public ArchiveCharacter ( ICharacter entity ) : void
entity ICharacter the thing to archive
리턴 void

LoadAllCharactersForAccountToCache() 공개 메소드

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

RestorePlayer() 공개 메소드

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
리턴 IPlayer

WriteCharacter() 공개 메소드

Write one character to its player current data
public WriteCharacter ( ICharacter entity ) : void
entity ICharacter the char to write
리턴 void

WriteOnePlayer() 공개 메소드

Writes one player out to disk
public WriteOnePlayer ( IPlayer entity ) : bool
entity IPlayer
리턴 bool