Basics
Guides
API Reference
Basics
Guides
API Reference
[16:7] extends: FxObj
Wraps an AussomShopListener (implementation of FXGL's ShopListener interface) so Aussom code can react to buy and sell events on a Shop. Each callback receives the TradeItem involved as an AussomJavaObject. Install on a Shop via Shop.setListener(this.obj).
ShopListener ()
Creates a new ShopListener. Wire onSold / onBought, then install on a Shop.
adopt (object Ajo)
Wraps an existing ShopListener AussomJavaObject.
Ajo is an AussomJavaObject around an AussomShopListener.A new wrapper.onSold (callback Cb)
Registers the onSold callback (fires when this shop sells an item to another shop).
Cb is a callback(tradeItemAjo) -> void.this objectonBought (callback Cb)
Registers the onBought callback (fires when this shop buys an item from another shop).
Cb is a callback(tradeItemAjo) -> void.this object
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.