-
-
Notifications
You must be signed in to change notification settings - Fork 216
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Backend: Scoreboard Event lazy (#2835)
Co-authored-by: Empa <itsempa@users.noreply.github.com>
- Loading branch information
Showing
3 changed files
with
6 additions
and
6 deletions.
There are no files selected for viewing
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
6 changes: 3 additions & 3 deletions
6
src/main/java/at/hannibal2/skyhanni/events/ScoreboardUpdateEvent.kt
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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
package at.hannibal2.skyhanni.events | ||
|
||
class ScoreboardUpdateEvent( | ||
val full: List<String>, | ||
val old: List<String>, | ||
val scoreboard: List<String>, | ||
) : LorenzEvent() { | ||
|
||
val added by lazy { scoreboard - old.toSet() } | ||
val removed by lazy { old - scoreboard.toSet() } | ||
val added: List<String> = full - old.toSet() | ||
val removed: List<String> = old - full.toSet() | ||
} |
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