aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/utils/NEUInternalName.kt
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-08-09 14:55:06 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-08-09 14:55:06 +0200
commit0efd1b797bbca2eb144b3ec795217ee2e9077c23 (patch)
tree00ac1262c6b7e3e676794c75ce3dfb86873f4f7b /src/main/java/at/hannibal2/skyhanni/utils/NEUInternalName.kt
parent5607930d95e526c529dac318d8e958b7b4de052b (diff)
downloadskyhanni-0efd1b797bbca2eb144b3ec795217ee2e9077c23.tar.gz
skyhanni-0efd1b797bbca2eb144b3ec795217ee2e9077c23.tar.bz2
skyhanni-0efd1b797bbca2eb144b3ec795217ee2e9077c23.zip
Using NEUInternalName in even more classes
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils/NEUInternalName.kt')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/NEUInternalName.kt3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/NEUInternalName.kt b/src/main/java/at/hannibal2/skyhanni/utils/NEUInternalName.kt
index 5ccb74664..acf2aa092 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/NEUInternalName.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/NEUInternalName.kt
@@ -5,6 +5,9 @@ class NEUInternalName private constructor(private val internalName: String) {
companion object {
private val map = mutableMapOf<String, NEUInternalName>()
+ val NONE = "NONE".asInternalName()
+ val MISSING_ITEM = "MISSING_ITEM".asInternalName()
+
fun String.asInternalName(): NEUInternalName {
val internalName = uppercase()
return map.getOrPut(internalName) { NEUInternalName(internalName) }