AlmasB / FXGL

Java / JavaFX / Kotlin Game Library (Engine)
http://almasb.github.io/FXGL/
MIT License
4.45k stars 555 forks source link

quantityProperty() in Inventory should be read-only to avoid external modifications #1350

Open AlmasB opened 9 months ago

AlmasB commented 9 months ago
/**
 * @return property with the total sum of all [item] stack quantities
 */
fun itemQuantityProperty(item: T): IntegerProperty

IntegerProperty -> ReadOnlyIntegerProperty

and the corresponding quantityProperty() in ItemData