Skip to main content

TypedItemSetAllowLockType

Callable

  • TypedItemSetAllowLockType(asset: Mutable<Asset>, allowLockType: Record<string, Set<number>>, allowAll?: boolean): void

  • Sets the AllowLock and AllowLockType properties on an asset based on an AllowLockType array and the total number of possible types.


    Parameters

    • asset: Mutable<Asset>

      The asset to set properties on

    • allowLockType: Record<string, Set<number>>

      The AllowLockType record indicating which of the asset's types permit locks

    • allowAll: boolean = false

    Returns void

    • Nothing