Перейти к основному содержимому

Protocol: InventoryLeaseRegistry

Registry of unfinished inventory leases owned by the current Script.

class InventoryLeaseRegistry(Protocol)

Related API: InventoryLease

Methods

list

def list(self) -> Sequence[InventoryLease]:

Return all unfinished leases owned by the current Script.

Related API: InventoryLease

get_for_player

def get_for_player(self, player_id: str) -> Optional[InventoryLease]:

Return the unfinished lease for a player, if one exists.

Related API: InventoryLease