mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-17 22:14:05 +09:00
quickslot works, new event for actor "actorValueChanged"
- "unpacking" fresh new tool would un-register quickslot desig. - priority issue on "equipped by quickslot change" and "equipped by inventory UI"
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
package net.torvald.terrarum.console
|
||||
|
||||
import net.torvald.terrarum.Terrarum
|
||||
|
||||
import java.util.HashMap
|
||||
|
||||
/**
|
||||
@@ -9,7 +7,7 @@ import java.util.HashMap
|
||||
*/
|
||||
object CommandDict {
|
||||
|
||||
internal var dict: HashMap<String, ConsoleCommand> = hashMapOf(
|
||||
internal val dict: HashMap<String, ConsoleCommand> = hashMapOf(
|
||||
Pair("echo", Echo),
|
||||
Pair("error", EchoError),
|
||||
Pair("setav", SetAV),
|
||||
@@ -60,4 +58,8 @@ object CommandDict {
|
||||
operator fun get(commandName: String): ConsoleCommand {
|
||||
return dict[commandName]!!
|
||||
}
|
||||
|
||||
fun add(name: String, obj: ConsoleCommand) {
|
||||
dict[name] = obj
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user