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.
 
 
 
 
openrs2/game/src/main/kotlin/org/openrs2/game/store/DummyPlayerStore.kt

29 lines
827 B

package org.openrs2.game.store
import com.github.michaelbull.result.Ok
import com.github.michaelbull.result.Result
import org.openrs2.conf.CountryCode
import org.openrs2.protocol.create.downstream.CreateResponse
import java.time.LocalDate
import javax.inject.Singleton
@Singleton
public class DummyPlayerStore : PlayerStore {
override suspend fun checkName(username: String): Result<Unit, CreateResponse> {
return Ok(Unit)
}
override suspend fun create(
gameNewsletters: Boolean,
otherNewsletters: Boolean,
shareDetailsWithBusinessPartners: Boolean,
username: String,
password: String,
affiliate: Int,
dateOfBirth: LocalDate,
country: CountryCode,
email: String
): Result<Unit, CreateResponse> {
return Ok(Unit)
}
}