Package mekhq.campaign.log
Class PerformanceLogger
java.lang.Object
mekhq.campaign.log.PerformanceLogger
This class is responsible to control the logging of Service Log Entries.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic voidchangedEdge(Campaign campaign, Person person, LocalDate date) static voidgainedEdge(Campaign campaign, Person person, LocalDate date) static voidstatic voidimprovedSkill(boolean isLogSkillGain, Person person, LocalDate date, String skill, int value) Logs a skill improvement event for a specified person if skill gain logging is enabled.static voidDeprecated, for removal: This API element is subject to removal in a future version.
- 
Constructor Details- 
PerformanceLoggerpublic PerformanceLogger()
 
- 
- 
Method Details- 
improvedSkill@Deprecated(since="0.50.07", forRemoval=true) public static void improvedSkill(Campaign campaign, Person person, LocalDate date, String skill, String value) Deprecated, for removal: This API element is subject to removal in a future version.
- 
improvedSkillpublic static void improvedSkill(boolean isLogSkillGain, Person person, LocalDate date, String skill, int value) Logs a skill improvement event for a specified person if skill gain logging is enabled. This method records the event details including the skill improved, its value, and the date of the improvement.- Parameters:
- isLogSkillGain- a boolean indicating whether skill gain logging is enabled
- person- the- Personobject representing the individual gaining the skill
- date- the- LocalDateof the skill improvement
- skill- a- Stringrepresenting the name of the skill that was improved
- value- an- intrepresenting the value of the improvement to the skill
 
- 
gainedSPA
- 
gainedEdge
- 
changedEdge
 
- 
improvedSkill(boolean, Person, LocalDate, String, int)instead