Rules that if broken on container operations will throw an error.

interface ContainerRules {
    allowedItems: string[];
    allowNestedStorageItems: boolean;
    bannedItems: string[];
    weightLimit?: number;
}

Properties

allowedItems: string[]

Defines the items that are exclusively allowed in the container. If empty all items are allowed in the container.

allowNestedStorageItems: boolean

Determines whether other storage items can be placed into the container.

bannedItems: string[]

Defines the items that are not allowed in the container.

weightLimit?: number

Defines the maximum allowed total weight of all items in the storage item container. If undefined container has no weight limit.