API reference
API reference
Select your platform
No SDKs available
No versions available

ComponentPool

ComponentPool

class ComponentPool<T : ComponentBase>(producer: () -> T)

Constructors

NameSummary
ComponentPool
constructor(producer: () -> T)

Functions

NameSummary
borrow
fun borrow(entID: Long): <Error class: unknown class><T, Boolean>
borrowOrCreate
fun borrowOrCreate(entID: Long): T
createWithoutEnt
fun createWithoutEnt(): <Error class: unknown class><T, Boolean>
recycle
fun recycle(obj: ComponentBase)
Did you find this page helpful?
Thumbs up icon
Thumbs down icon