Change Log 1.5.3
Fairly small update that just adds a couple of features to the API. If you do not use the API, you can skip this release.
Added new event:
work.torp.domain.api.events.domain
DomainMergeEvent
This event fires when a block is being merged.
- getPlayer() - Gets the player who is merging the block
- getDomainBlock() - Gets the Domain Block that is being merged
- getCancelReason() - Get the reason for cancellation
- isCancelled() - Get the cancellation flag
- setCancelled(boolean cancel) - Sets the cancellation flag
Also added a new API call
work.torp.domain.api.DomainAPI
getAllBlocksInField(int domainBlockId)
Returns an APIResponse with List<Block> of all the blocks within the field. Returns null if the Domain Block ID is invalid or if no blocks are found in the field.