IUniqueComponent

Allows components to be used once before being deleted

Component deletion

  • If the component is a group, then all of its owned components will also be deleted.

  • If the component is inside a group, then all the group's components will also be deleted.

This will also cause cancellation of any associated timeout.

Inheritors

Properties

Link copied to clipboard
abstract val instance: T
Link copied to clipboard
open var oneUse: Boolean

Sets this component as being usable once.

Link copied to clipboard
abstract var singleUse: Boolean

Sets this component as being usable once.

Functions

Link copied to clipboard
@CheckReturnValue
open fun oneUse(oneUse: Boolean): T

Sets this component as being usable once.

Link copied to clipboard
@CheckReturnValue
open fun singleUse(singleUse: Boolean): T

Sets this component as being usable once.