working pen menu

This commit is contained in:
minjaesong
2019-02-16 22:48:27 +09:00
parent 49f8b8d1c8
commit 3c1b4c8a64
11 changed files with 170 additions and 43 deletions

View File

@@ -1,6 +1,6 @@
package net.torvald.terrarum.gameactors.ai
import org.luaj.vm2.*
import org.luaj.vm2.LuaValue
/**
* Created by minjaesong on 2016-10-24.
@@ -387,5 +387,4 @@ fun Int.toLua() = LuaValue.valueOf(this)
fun String.toLua() = LuaValue.valueOf(this)
fun Double?.toLua() = if (this == null) LuaValue.NIL else this.toLua()
fun Int?.toLua() = if (this == null) LuaValue.NIL else this.toLua()
fun String?.toLua() = if (this == null) LuaValue.NIL else this.toLua()
fun Boolean.toInt() = if (this) 1 else 0
fun String?.toLua() = if (this == null) LuaValue.NIL else this.toLua()