diff options
Diffstat (limited to 'src/main/kotlin/io/dico/parcels2/storage/Backing.kt')
-rw-r--r-- | src/main/kotlin/io/dico/parcels2/storage/Backing.kt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main/kotlin/io/dico/parcels2/storage/Backing.kt b/src/main/kotlin/io/dico/parcels2/storage/Backing.kt index b658d10..6bef483 100644 --- a/src/main/kotlin/io/dico/parcels2/storage/Backing.kt +++ b/src/main/kotlin/io/dico/parcels2/storage/Backing.kt @@ -6,6 +6,7 @@ import kotlinx.coroutines.experimental.Deferred import kotlinx.coroutines.experimental.Job import kotlinx.coroutines.experimental.channels.ReceiveChannel import kotlinx.coroutines.experimental.channels.SendChannel +import org.joda.time.DateTime import java.util.UUID interface Backing { @@ -30,8 +31,14 @@ interface Backing { fun shutdown() + fun getWorldCreationTime(worldId: ParcelWorldId): DateTime? + + fun setWorldCreationTime(worldId: ParcelWorldId, time: DateTime) + fun getPlayerUuidForName(name: String): UUID? + fun updatePlayerName(uuid: UUID, name: String) + fun transmitParcelData(channel: SendChannel<DataPair>, parcels: Sequence<ParcelId>) fun transmitAllParcelData(channel: SendChannel<DataPair>) @@ -47,6 +54,8 @@ interface Backing { fun setParcelOwner(parcel: ParcelId, owner: PlayerProfile?) + fun setParcelOwnerSignOutdated(parcel: ParcelId, outdated: Boolean) + fun setLocalPlayerStatus(parcel: ParcelId, player: PlayerProfile, status: AddedStatus) fun setParcelAllowsInteractInventory(parcel: ParcelId, value: Boolean) |