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:
Song Minjae
2017-04-28 12:21:27 +09:00
parent 13e817e154
commit 996d578d3e
34 changed files with 215 additions and 61 deletions

View File

@@ -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
}
}