mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-13 03:54:06 +09:00
adjusting disposing behavs so that we can go back and forth the ingame and titlescr
This commit is contained in:
@@ -123,7 +123,10 @@ inline class Yaml(val text: String) {
|
||||
val nodeString = it.drop(2)
|
||||
val nodeNameAndInvocation = nodeString.split(SEPARATOR)
|
||||
val nodeName = nodeNameAndInvocation[0]
|
||||
val nodeInvocation = loadClass(nodeNameAndInvocation[1])
|
||||
val nodeInvocation = if (nodeNameAndInvocation.size == 2)
|
||||
loadClass(nodeNameAndInvocation[1])
|
||||
else
|
||||
null
|
||||
|
||||
val nameInvokePair = nodeName to nodeInvocation
|
||||
|
||||
@@ -193,5 +196,5 @@ inline class Yaml(val text: String) {
|
||||
*
|
||||
*/
|
||||
interface YamlInvokable {
|
||||
operator fun invoke()
|
||||
operator fun invoke(vararg args: Any?)
|
||||
}
|
||||
Reference in New Issue
Block a user