C# Class SleepHunter.Metadata.StaffMetadataManager

Exibir arquivo Open project: ewrogers/SleepHunter4

Public Properties

Property Type Description
StaffMetadataFile string

Public Methods

Method Description
AddStaff ( StaffMetadata staff ) : void
ClearStaves ( ) : void
ContainsStaff ( string staffName ) : bool
GetBestStaffForSpell ( string spellName, IEnumerable possibleStaves = null, int maximumLevel, int maximumAbilityLevel ) : StaffMetadata
GetBestStaffForSpell ( string spellName, int &numberOfLines, IEnumerable possibleStaves = null, int maximumLevel, int maximumAbilityLevel ) : StaffMetadata
GetLinesWithStaff ( string staffName, string spellName ) : int?
GetStaff ( string staffName ) : StaffMetadata
LoadFromFile ( string filename ) : void
LoadFromStream ( Stream stream ) : void
RecalculateAllSpells ( StaffMetadata staff ) : void
RecalculateAllStaves ( ) : void
RecalculateSpell ( StaffMetadata staff, SpellMetadata spell ) : void
RecalculateSpellForAllStaves ( SpellMetadata spell ) : void
RemoveStaff ( string staffName ) : bool
RenameStaff ( string originalName, string newName ) : bool
SaveToFile ( string filename ) : void
SaveToStream ( Stream stream ) : void

Private Methods

Method Description
CalculateLines ( StaffMetadata staff ) : ComputedSpellLines
CalculateLinesForSpell ( StaffMetadata staff, SpellMetadata spell ) : int
OnStaffAdded ( StaffMetadata staff ) : void
OnStaffModifiersChanged ( StaffMetadata staff, SpellLineModifiers modifiers ) : void
OnStaffRemoved ( StaffMetadata staff ) : void
OnStaffUpdated ( StaffMetadata staff ) : void
SpellManager_SpellAdded ( object sender, SpellMetadataEventArgs e ) : void
StaffMetadataManager ( ) : System
staff_ModifiersChanged ( object sender, SpellLineModifiersEventArgs e ) : void

Method Details

AddStaff() public method

public AddStaff ( StaffMetadata staff ) : void
staff StaffMetadata
return void

ClearStaves() public method

public ClearStaves ( ) : void
return void

ContainsStaff() public method

public ContainsStaff ( string staffName ) : bool
staffName string
return bool

GetBestStaffForSpell() public method

public GetBestStaffForSpell ( string spellName, IEnumerable possibleStaves = null, int maximumLevel, int maximumAbilityLevel ) : StaffMetadata
spellName string
possibleStaves IEnumerable
maximumLevel int
maximumAbilityLevel int
return StaffMetadata

GetBestStaffForSpell() public method

public GetBestStaffForSpell ( string spellName, int &numberOfLines, IEnumerable possibleStaves = null, int maximumLevel, int maximumAbilityLevel ) : StaffMetadata
spellName string
numberOfLines int
possibleStaves IEnumerable
maximumLevel int
maximumAbilityLevel int
return StaffMetadata

GetLinesWithStaff() public method

public GetLinesWithStaff ( string staffName, string spellName ) : int?
staffName string
spellName string
return int?

GetStaff() public method

public GetStaff ( string staffName ) : StaffMetadata
staffName string
return StaffMetadata

LoadFromFile() public method

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

LoadFromStream() public method

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

RecalculateAllSpells() public method

public RecalculateAllSpells ( StaffMetadata staff ) : void
staff StaffMetadata
return void

RecalculateAllStaves() public method

public RecalculateAllStaves ( ) : void
return void

RecalculateSpell() public method

public RecalculateSpell ( StaffMetadata staff, SpellMetadata spell ) : void
staff StaffMetadata
spell SpellMetadata
return void

RecalculateSpellForAllStaves() public method

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

RemoveStaff() public method

public RemoveStaff ( string staffName ) : bool
staffName string
return bool

RenameStaff() public method

public RenameStaff ( 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

StaffMetadataFile public_oe static_oe property

public static string StaffMetadataFile
return string