Package-level declarations

Types

Link copied to clipboard
@Serializable
class Cooldown(val length: Long)
Link copied to clipboard
@Serializable
data class CooldownManager(completionTime: MutableMap<String, Cooldown> = mutableMapOf())

A component that manages cooldowns for an entity. Each cooldown has a unique key, but may be used to keep track of anything. Typically a good idea to persist this component.

Link copied to clipboard
@Serializable
class Expiry(val duration: Duration)

States something should expire after duration time since the component's creation. Commonly used in a relation with other components to remove those components later.