Open-source multiplayer game server compatible with the RuneScape client
https://www.openrs2.org/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
662 B
21 lines
662 B
package org.openrs2.game.store
|
|
|
|
import com.github.michaelbull.result.Result
|
|
import org.openrs2.conf.CountryCode
|
|
import org.openrs2.protocol.create.downstream.CreateResponse
|
|
import java.time.LocalDate
|
|
|
|
public interface PlayerStore {
|
|
public suspend fun checkName(username: String): Result<Unit, CreateResponse>
|
|
public suspend fun create(
|
|
gameNewsletters: Boolean,
|
|
otherNewsletters: Boolean,
|
|
shareDetailsWithBusinessPartners: Boolean,
|
|
username: String,
|
|
password: String,
|
|
affiliate: Int,
|
|
dateOfBirth: LocalDate,
|
|
country: CountryCode,
|
|
email: String
|
|
): Result<Unit, CreateResponse>
|
|
}
|
|
|