space-engineers-remote-api

Call SpaceEngineers remote API in Kotlin

License

License

GroupId

GroupId

com.hiczp
ArtifactId

ArtifactId

space-engineers-remote-api
Last Version

Last Version

0.1.3
Release Date

Release Date

Type

Type

jar
Description

Description

space-engineers-remote-api
Call SpaceEngineers remote API in Kotlin
Project URL

Project URL

https://github.com/czp3009/space-engineers-remote-api
Source Code Management

Source Code Management

https://github.com/czp3009/space-engineers-remote-api

Download space-engineers-remote-api

How to add to project

<!-- https://jarcasting.com/artifacts/com.hiczp/space-engineers-remote-api/ -->
<dependency>
    <groupId>com.hiczp</groupId>
    <artifactId>space-engineers-remote-api</artifactId>
    <version>0.1.3</version>
</dependency>
// https://jarcasting.com/artifacts/com.hiczp/space-engineers-remote-api/
implementation 'com.hiczp:space-engineers-remote-api:0.1.3'
// https://jarcasting.com/artifacts/com.hiczp/space-engineers-remote-api/
implementation ("com.hiczp:space-engineers-remote-api:0.1.3")
'com.hiczp:space-engineers-remote-api:jar:0.1.3'
<dependency org="com.hiczp" name="space-engineers-remote-api" rev="0.1.3">
  <artifact name="space-engineers-remote-api" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.hiczp', module='space-engineers-remote-api', version='0.1.3')
)
libraryDependencies += "com.hiczp" % "space-engineers-remote-api" % "0.1.3"
[com.hiczp/space-engineers-remote-api "0.1.3"]

Dependencies

compile (7)

Group / Artifact Type Version
org.slf4j : slf4j-api jar 1.7.28
org.jetbrains.kotlin : kotlin-stdlib-jdk8 jar 1.3.50
com.hiczp : caeruleum jar 1.2.6
io.ktor : ktor-client-logging-jvm jar 1.2.5
io.ktor : ktor-client-gson jar 1.2.5
com.google.code.gson : gson jar 2.8.6
com.github.salomonbrys.kotson : kotson jar 2.5.0

Project Modules

There are no modules declared in this project.

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

Versions

Version
0.1.3
0.1.2
0.1.1
0.1