/space-engineers-remote-api

Call SpaceEngineers remote API in Kotlin

Primary LanguageKotlin

SpaceEngineers Remote API written in Kotlin

api group: 'com.hiczp', name: 'space-engineers-remote-api', version: '0.1.3'

Usage

Http engine is optional, recommend CIO

api group: 'io.ktor', name: 'ktor-client-cio', version: ktorVersion

See all available engine here https://ktor.io/clients/http-client/engines.html

val spaceEngineersRemoteClient = SpaceEngineersRemoteClient(
    "http://localhost:8080",
    "BbDYO1rQObKCkCyh50Z2UQ==",
    CIO
)
runBlocking {
    spaceEngineersRemoteClient.server.ping().data.run(::println)
    spaceEngineersRemoteClient.session.sendMessage("Testing 123")
}
spaceEngineersRemoteClient.close()

What is SpaceEngineers Remote API

FYI https://www.spaceengineersgame.com/dedicated-servers.html

API

License

Apache 2.0