tac.extensions.shopk_access.slots

Handles slot discovery, availability checking, and assignment for subscription-based access slots.

Author: Twijn
View on GitHub →

Functions

slots.getAllMatchingTags(tac, pattern)

View source

Find all tags that exist in the system matching a pattern Only tags that have a corresponding door are considered valid slots

Parameters:
Returns: table - set of matching tags

slots.getAvailableSlots(tac, pattern)

View source

Get available slots for a tier pattern

Parameters:
Returns: table, table - available slots array, occupied slots map

slots.getActiveSubscriptions(tac, pattern)

View source

Get active subscriptions for a pattern (for backward compatibility)

Parameters:
Returns: table - array of active subscription info

slots.getNextAvailableSlot(tac, pattern)

View source

Get next available slot for a tier pattern

Parameters:
Returns: string|nil - next available tag or nil if none available