KTX 1.11.0-rc3
The first stable release to support a new KTX module: ktx-artemis
.
- [UPDATE] Updated to Kotlin 1.7.22.
- [UPDATE] Updated to Dokka 1.7.20.
- [FEATURE] (
ktx-ashley
) AddedtagFor<Component>
utility functions that automatically create a mapper for a flag component. These properties can be used to check forComponent
presence within theEntity
, as well as automatically add and removeComponent
instances upon property modification. - [FEATURE] (
ktx-artemis
) new KTX module with Artemis-odb entity component system utilities:ktx-artemis
.ArchetypeBuilder.add
andArchetypeBuilder.remove
extension methods for adding and removing components from anArchetypeBuilder
.oneOf
,allOf
,exclude
DSL and extension methods forAspect.Builder
.EntityEdit.plusAssign
operator function for adding components.EntityEdit.with
builder function for adding components to an entity.EntityEdit.remove
extension function for removing components from an entity.EntityTransmuterFactory.add
andEntityTransmuterFactory.remove
extension functions for adding and removing components from anEntityTransmuterFactory
.ComponentMapper.contains
operator function to check if an entity has a component.World.edit
extension builder function to edit an entity.World.entity
extension builder function to create and edit an entity.World.get
operator function for retrieving a system which returns null if it doesn't exist.World.getSystem
extension function for retrieving a system which throws an exception if it doesn't exist.World.mapperFor
extension function for retrieving aComponentMapper
instance.
- [FEATURE] (
ktx-assets-async
)AssetStorage
now stores a basic path-to-type map, which allows it to support moreAssetManager
methods called by someAssetLoader
implementations. These include:AssetManager.contains(String)
AssetManager.get(String)
AssetManager.get(String, Boolean)
AssetManager.get(String, Class, Boolean)
AssetManager.getAssetType(String)
AssetManager.isLoaded(String)
AssetManager.unload(String)
AssetManager.getDependencies(String)
AssetManager.getReferenceCount(String)
Known issues:
- [BUG] (
ktx-assets-async
)AssetStorage
might work incorrectly on older Android devices due to access to unsupported Java APIs (ConcurrentHashMap.getOrDefault
).