summaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/data
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-11-17 11:52:51 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-11-17 11:52:51 +0100
commit18e96e6c3b867da06aabd29bcd83e92ffe58a00e (patch)
tree7ac50db2fa25e0dbb1c91e0f94b9b18974efd122 /src/main/java/at/hannibal2/skyhanni/data
parent3468dcc7df5d93157dd16d0a9b6d6ddbd736a5a0 (diff)
downloadskyhanni-18e96e6c3b867da06aabd29bcd83e92ffe58a00e.tar.gz
skyhanni-18e96e6c3b867da06aabd29bcd83e92ffe58a00e.tar.bz2
skyhanni-18e96e6c3b867da06aabd29bcd83e92ffe58a00e.zip
Created PetAPI and deprecated String.matchRegex()
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/data')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/data/PetAPI.kt10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/data/PetAPI.kt b/src/main/java/at/hannibal2/skyhanni/data/PetAPI.kt
new file mode 100644
index 000000000..c21b2f384
--- /dev/null
+++ b/src/main/java/at/hannibal2/skyhanni/data/PetAPI.kt
@@ -0,0 +1,10 @@
+package at.hannibal2.skyhanni.data
+
+object PetAPI {
+
+ var currentPet: String?
+ get() = ProfileStorageData.profileSpecific?.currentPet
+ set(value) {
+ ProfileStorageData.profileSpecific?.currentPet = value
+ }
+}