C# Class SleepHunter.Metadata.StaffMetadataManager

Afficher le fichier Open project: ewrogers/SleepHunter4

Méthodes publiques

Свойство Type Description
StaffMetadataFile string

Méthodes publiques

Méthode 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

Méthode 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 méthode

public AddStaff ( StaffMetadata staff ) : void
staff StaffMetadata
Résultat void

ClearStaves() public méthode

public ClearStaves ( ) : void
Résultat void

ContainsStaff() public méthode

public ContainsStaff ( string staffName ) : bool
staffName string
Résultat bool

GetBestStaffForSpell() public méthode

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

GetBestStaffForSpell() public méthode

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

GetLinesWithStaff() public méthode

public GetLinesWithStaff ( string staffName, string spellName ) : int?
staffName string
spellName string
Résultat int?

GetStaff() public méthode

public GetStaff ( string staffName ) : StaffMetadata
staffName string
Résultat StaffMetadata

LoadFromFile() public méthode

public LoadFromFile ( string filename ) : void
filename string
Résultat void

LoadFromStream() public méthode

public LoadFromStream ( Stream stream ) : void
stream Stream
Résultat void

RecalculateAllSpells() public méthode

public RecalculateAllSpells ( StaffMetadata staff ) : void
staff StaffMetadata
Résultat void

RecalculateAllStaves() public méthode

public RecalculateAllStaves ( ) : void
Résultat void

RecalculateSpell() public méthode

public RecalculateSpell ( StaffMetadata staff, SpellMetadata spell ) : void
staff StaffMetadata
spell SpellMetadata
Résultat void

RecalculateSpellForAllStaves() public méthode

public RecalculateSpellForAllStaves ( SpellMetadata spell ) : void
spell SpellMetadata
Résultat void

RemoveStaff() public méthode

public RemoveStaff ( string staffName ) : bool
staffName string
Résultat bool

RenameStaff() public méthode

public RenameStaff ( string originalName, string newName ) : bool
originalName string
newName string
Résultat bool

SaveToFile() public méthode

public SaveToFile ( string filename ) : void
filename string
Résultat void

SaveToStream() public méthode

public SaveToStream ( Stream stream ) : void
stream Stream
Résultat void

Property Details

StaffMetadataFile public_oe static_oe property

public static string StaffMetadataFile
Résultat string