13 lines
333 B
Java
13 lines
333 B
Java
package games.dmg.treefeller;
|
|
|
|
import java.io.IOException;
|
|
import java.util.Optional;
|
|
import java.util.UUID;
|
|
|
|
/** Durable player-state boundary used by gameplay services. */
|
|
public interface PlayerStateStore {
|
|
Optional<PlayerTreeFellerState> load(UUID playerId);
|
|
|
|
void save(PlayerTreeFellerState state) throws IOException;
|
|
}
|