C# Class NetMud.DataAccess.FileSystem.LiveData

Inheritance: FileAccessor
Mostra file Open project: SwiftAusterity/NetMud Class Usage Examples

Public Methods

Method Description
ArchiveFull ( ) : void

Archives EVERYTHING

ReadEntity ( FileInfo file, Type entityType ) : IEntity
WriteEntity ( IEntity entity ) : void
WriteSpecificEntity ( DirectoryInfo dir, IEntity entity ) : void

Writes one entity to Current backup (not players)

Private Methods

Method Description
GetEntityFilename ( IEntity entity ) : string

Gets the statically formatted filename for an entity

Method Details

ArchiveFull() public method

Archives EVERYTHING
public ArchiveFull ( ) : void
return void

ReadEntity() public method

public ReadEntity ( FileInfo file, Type entityType ) : IEntity
file System.IO.FileInfo
entityType System.Type
return IEntity

WriteEntity() public method

public WriteEntity ( IEntity entity ) : void
entity IEntity
return void

WriteSpecificEntity() public method

Writes one entity to Current backup (not players)
public WriteSpecificEntity ( DirectoryInfo dir, IEntity entity ) : void
dir System.IO.DirectoryInfo Root directory to write to
entity IEntity The entity to write out
return void