-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add skill updated and widget updated events
- Loading branch information
Showing
2 changed files
with
27 additions
and
4 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
api/src/main/java/com/rsbuddy/osrs/event/SkillUpdated.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package com.rsbuddy.osrs.event; | ||
|
||
import com.rsbuddy.osrs.content.config.Skill; | ||
|
||
public class SkillUpdated { | ||
private final Skill skill; | ||
private final int oldExperience; | ||
private final int newExperience; | ||
|
||
public SkillUpdated(Skill skill, int oldExperience, int newExperience) { | ||
this.skill = skill; | ||
this.oldExperience = oldExperience; | ||
this.newExperience = newExperience; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "SkillUpdated{" + | ||
"skill=" + skill + | ||
", oldExperience=" + oldExperience + | ||
", newExperience=" + newExperience + | ||
'}'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters