summaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/events
diff options
context:
space:
mode:
authorLorenz <ESs95s3P5z8Pheb>2022-07-15 19:41:05 +0200
committerLorenz <ESs95s3P5z8Pheb>2022-07-15 19:41:05 +0200
commit8918d129525ace873e98840d9d4499e35c92dffe (patch)
treed0dd7e5af3738ab52c20ac69de25f91b9149e7c4 /src/main/java/at/hannibal2/skyhanni/events
parent2d923d222ebc58777dbf8523484f69a26313188c (diff)
downloadskyhanni-8918d129525ace873e98840d9d4499e35c92dffe.tar.gz
skyhanni-8918d129525ace873e98840d9d4499e35c92dffe.tar.bz2
skyhanni-8918d129525ace873e98840d9d4499e35c92dffe.zip
added repo support
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/events')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/events/RepositoryReloadEvent.kt12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/events/RepositoryReloadEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/RepositoryReloadEvent.kt
new file mode 100644
index 000000000..841133ae9
--- /dev/null
+++ b/src/main/java/at/hannibal2/skyhanni/events/RepositoryReloadEvent.kt
@@ -0,0 +1,12 @@
+package at.hannibal2.skyhanni.events
+
+import at.hannibal2.skyhanni.repo.RepoUtils
+import com.google.gson.Gson
+import com.google.gson.JsonObject
+import java.io.File
+
+class RepositoryReloadEvent(val repoLocation: File, val gson: Gson): LorenzEvent() {
+ fun getConstant(constant: String): JsonObject? {
+ return RepoUtils.getConstant(repoLocation, constant, gson)
+ }
+} \ No newline at end of file