diff options
author | Empa <42304516+ItsEmpa@users.noreply.github.com> | 2024-04-12 14:27:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-12 14:27:44 +0200 |
commit | d07088973b3662cfa70407a33a2ca9855605837e (patch) | |
tree | 12f9841637985a6f60fb6a26bb0f7106e5d5041a /src/main/java/at/hannibal2/skyhanni/events | |
parent | 388819e61cf1229ef4a5d6ddeca1bd1dafd05e71 (diff) | |
download | skyhanni-d07088973b3662cfa70407a33a2ca9855605837e.tar.gz skyhanni-d07088973b3662cfa70407a33a2ca9855605837e.tar.bz2 skyhanni-d07088973b3662cfa70407a33a2ca9855605837e.zip |
Fix + Improvement: No Bits Warning (#1425)
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/events')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/events/BitsUpdateEvent.kt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/events/BitsUpdateEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/BitsUpdateEvent.kt index 3bdbf286d..47472b3f4 100644 --- a/src/main/java/at/hannibal2/skyhanni/events/BitsUpdateEvent.kt +++ b/src/main/java/at/hannibal2/skyhanni/events/BitsUpdateEvent.kt @@ -1,3 +1,7 @@ package at.hannibal2.skyhanni.events -class BitsUpdateEvent(val bits: Int, val bitsToClaim: Int) : LorenzEvent() +open class BitsUpdateEvent(val bits: Int, val bitsAvailable: Int) : LorenzEvent() { + class BitsGain(bits: Int, bitsAvailable: Int) : BitsUpdateEvent(bits, bitsAvailable) + class BitsSpent(bits: Int, bitsAvailable: Int) : BitsUpdateEvent(bits, bitsAvailable) + class BitsAvailableGained(bits: Int, bitsAvailable: Int) : BitsUpdateEvent(bits, bitsAvailable) +} |