init
This commit is contained in:
commit
e271c974ad
87 changed files with 29161 additions and 0 deletions
8
src/jsMain/kotlin/main.kt
Normal file
8
src/jsMain/kotlin/main.kt
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
fun main() {
|
||||
println("Hello, Kotlin/JS!")
|
||||
}
|
||||
|
||||
//@JsModule("typed-factorio")
|
||||
//@JsNonModule
|
||||
////@JsModule
|
||||
//external fun
|
||||
3
src/nativeMain/kotlin/Main.kt
Normal file
3
src/nativeMain/kotlin/Main.kt
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
fun main() {
|
||||
println("Hello, Kotlin/Native!")
|
||||
}
|
||||
27
src/nativeMain/kotlin/example/hello.kt
Normal file
27
src/nativeMain/kotlin/example/hello.kt
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
package example
|
||||
|
||||
import org.luaj.vm2.LuaBoolean
|
||||
import org.luaj.vm2.LuaValue
|
||||
|
||||
|
||||
object Object {
|
||||
val field = "A"
|
||||
}
|
||||
|
||||
class Clazz {
|
||||
fun memberFunction(p: Int): ULong = 42UL
|
||||
}
|
||||
|
||||
fun forIntegers(b: Byte, s: Short, i: UInt, l: Long) {}
|
||||
fun forFloats(f: Float, d: Double) {}
|
||||
|
||||
fun strings(str: String): String {
|
||||
return "That is '$str' from C"
|
||||
}
|
||||
|
||||
val globalString = "A global String"
|
||||
|
||||
fun testingLuaBooleanElephant() {
|
||||
val b: LuaBoolean = LuaValue.TRUE
|
||||
println(b)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue