Class SingleVariantStorage

java.lang.Object
fr.robie.machineengine.api.transfer.SnapshotParticipant<SingleVariantStorage.Snapshot>
fr.robie.machineengine.api.transfer.storage.SingleVariantStorage
All Implemented Interfaces:
ResourceHandler

public class SingleVariantStorage extends SnapshotParticipant<SingleVariantStorage.Snapshot> implements ResourceHandler
One slot holding a single variant: a tank, a battery, an item slot. Different variants of the same type combine according to the category's MergePolicy.

Owned by one thread (ยง16); not thread-safe. Subclasses may override SnapshotParticipant.onFinalCommit() to react to committed changes (dirty marking, wake-ups).