Skip to content

KTX 1.9.6-b5

Pre-release
Pre-release
Compare
Choose a tag to compare
@czyzby czyzby released this 13 Jun 19:50
· 829 commits to master since this release

Includes a new module with Ashley ECS library utilities - ktx-ashley. Contains minor breaking changes in ktx-actors - listeners API was simplified.


  • [UPDATE] Updated to Kotlin 1.1.2-5.
  • [UPDATE] Updated to Kotlin Coroutines 0.16.
  • [FEATURE] (ktx-actors) onChange, onClick, onKey, onKeyDown, onKeyUp, onScrollFocus and onKeyboardFocus factory methods for EventListener instances were added. Contrary to existing factory methods, these use minimal set of parameters to make listeners creation as concise as possible.
  • [CHANGE] (ktx-actors) Existing onChange, onClick, onKey, onKeyDown, onKeyUp, onScrollFocus and onKeyboardFocus factory methods where renamed to onChangeEvent, onClickEvent, onKeyEvent, onKeyDownEvent, onKeyUpEvent, onScrollFocusEvent and onKeyboardFocusEvent respectively. Their excessive amount of parameters, useful only on rare occasions, led to unnecessary boilerplate during listeners creation. See ktx-actors file documentation for migration guide.
  • [FEATURE] (ktx-ashley) new KTX module with Ashley entity component system utilities: ktx-ashley.
    • PooledEngine.add and PooledEngine.entity extension methods.
    • PooledEntity wrapping Entity and providing access to PooledEngine API.
    • mapperFor factory method that allows to create ComponentMapper instances.
    • Accessors for Entity objects using ComponentMappers: get, has, hasNot, remove.
    • DSL methods for constructing Family builders with KClass instances: oneOf, allOf, exclude.

Known issues:

  • [BUG] (ktx-async) AssetStorage handles SynchronousAssetLoader instances on the IO thread pool instead of the main rendering thread, which causes issues with some synchronous loaders that need access to the OpenGL context.