C# Class SleepHunter.Metadata.SpellMetadataManager

显示文件 Open project: ewrogers/SleepHunter4

Public Properties

Property Type Description
SpellMetadataFile string

Public Methods

Method Description
AddSpell ( SpellMetadata spell ) : void
ClearSpells ( ) : void
ContainsSpell ( string spellName ) : bool
GetSpell ( string spellName ) : SpellMetadata
LoadFromFile ( string filename ) : void
LoadFromStream ( Stream stream ) : void
RemoveSpell ( string spellName ) : bool
RenameSpell ( string originalName, string newName ) : bool
SaveToFile ( string filename ) : void
SaveToStream ( Stream stream ) : void

Private Methods

Method Description
OnSpellAdded ( SpellMetadata spell ) : void
OnSpellChanged ( SpellMetadata spell ) : void
OnSpellRemoved ( SpellMetadata spell ) : void
SpellMetadataManager ( ) : System

Method Details

AddSpell() public method

public AddSpell ( SpellMetadata spell ) : void
spell SpellMetadata
return void

ClearSpells() public method

public ClearSpells ( ) : void
return void

ContainsSpell() public method

public ContainsSpell ( string spellName ) : bool
spellName string
return bool

GetSpell() public method

public GetSpell ( string spellName ) : SpellMetadata
spellName string
return SpellMetadata

LoadFromFile() public method

public LoadFromFile ( string filename ) : void
filename string
return void

LoadFromStream() public method

public LoadFromStream ( Stream stream ) : void
stream Stream
return void

RemoveSpell() public method

public RemoveSpell ( string spellName ) : bool
spellName string
return bool

RenameSpell() public method

public RenameSpell ( string originalName, string newName ) : bool
originalName string
newName string
return bool

SaveToFile() public method

public SaveToFile ( string filename ) : void
filename string
return void

SaveToStream() public method

public SaveToStream ( Stream stream ) : void
stream Stream
return void

Property Details

SpellMetadataFile public_oe static_oe property

public static string SpellMetadataFile
return string