Platform

interface Platform

Platform boundary for KTale.

Design note (architectural rule)

This module defines only the boundary. It contains:

  • no game logic

  • no assumptions about Hytale APIs

  • no entity/world modeling

Unknown host model (explicit uncertainty)

KTale deliberately does not commit (yet) to whether it will be used as:

  • a plugin/mod SDK hosted by an official server runtime, or

  • a bundled/custom server software distribution that embeds KTale as its core.

Both models can be represented by an implementation of this boundary without changing ktale-api.

Core implementations may depend on this boundary, but the boundary must remain portable across unknown future server APIs.

Properties

Link copied to clipboard
abstract val clock: PlatformClock

Platform-provided time source.

Link copied to clipboard

Command IO bridge.

Link copied to clipboard

Platform-provided logging backend.

Link copied to clipboard
abstract val platformId: String

Stable identifier for diagnostics (e.g. "fake", "hytale", "custom").

Link copied to clipboard

Scheduler hooks for sync/async execution.