From 18e96e6c3b867da06aabd29bcd83e92ffe58a00e Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Fri, 17 Nov 2023 11:52:51 +0100 Subject: Created PetAPI and deprecated String.matchRegex() --- src/main/java/at/hannibal2/skyhanni/data/PetAPI.kt | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/main/java/at/hannibal2/skyhanni/data/PetAPI.kt (limited to 'src/main/java/at/hannibal2/skyhanni/data') 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 + } +} -- cgit