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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
changedEdge
(Campaign campaign, Person person, LocalDate date) static void
gainedEdge
(Campaign campaign, Person person, LocalDate date) static void
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.static void
Deprecated, for removal: This API element is subject to removal in a future version.
-
Constructor Details
-
PerformanceLogger
public 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. -
improvedSkill
public 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 enabledperson
- thePerson
object representing the individual gaining the skilldate
- theLocalDate
of the skill improvementskill
- aString
representing the name of the skill that was improvedvalue
- anint
representing the value of the improvement to the skill
-
gainedSPA
-
gainedEdge
-
changedEdge
-
improvedSkill(boolean, Person, LocalDate, String, int)
instead