SpaceTradersKMP is an API wrapper for SpaceTraders game in Kotlin Multiplatform.
This library is mainly intended to be used for Kotlin Multiplatform.
Note
JVM Toolchain Version: 17
implementation("com.github.yamin8000:SpaceTradersKMP:version")
implementation group: 'com.github.yamin8000', name: 'SpaceTradersKMP-jvm', version: 'version'
implementation("com.github.yamin8000:SpaceTradersKMP-jvm:version")
<dependency>
<groupId>com.github.yamin8000</groupId>
<artifactId>SpaceTradersKMP</artifactId>
<version>version</version>
</dependency>
val client = GameClient(token = "")
val request = RegisterRequest(
faction = FactionSymbol.COSMIC,
symbol = "yamin",
email = "[email protected]"
)
val response = client.register(request)
println(response.data)
Important
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.