KTX 1.10.0-rc2
A maintenance release with notable changes to the ktx-ashley
and ktx-script
modules.
- [UPDATE] Updated to Kotlin 1.6.21.
- [UPDATE] Updated to Kotlin Coroutines 1.6.1.
- [FEATURE] (
ktx-ashley
) Added utilities for working with Ashley'sEntityListener
interface:EntityAdditionListener
: an interface extendingEntityListener
that only requires implementation of theentityAdded
method.EntityRemovalListener
: an interface extendingEntityListener
that only requires implementation of theentityRemoved
method.Engine.onEntityAdded
andEngine.onEntityRemoved
extension methods that create entity listeners from lambdas.- Wrappers for
Engine.onEntityAdded
andEngine.onEntityRemoved
forIteratingSystem
,IntervalIteratingSystem
andSortedIteratingSystem
that use system'sFamily
andEngine
automatically.
- [FEATURE] (
ktx-script
) AddedKotlinScriptEngine.evaluateOn
methods that can execute scripts with a custom receiver. - [CHANGE] (
ktx-script
) Generic libGDX and Java exceptions replaced with a customScriptEngineException
.