soulfire.inventory_connect.InventoryServiceSync¶
- class soulfire.inventory_connect.InventoryServiceSync[source]¶
Bases:
ProtocolBase class for protocol classes.
Protocol classes are defined as:
class Proto(Protocol): def meth(self) -> int: ...
Such classes are primarily used with static type checkers that recognize structural subtyping (static duck-typing).
For example:
class C: def meth(self) -> int: return 0 def func(x: Proto) -> int: return x.meth() func(C()) # Passes static type check
See PEP 544 for details. Protocol classes decorated with @typing.runtime_checkable act as simple-minded runtime protocols that check only the presence of given attributes, ignoring their type signatures. Protocol classes can be generic, they are defined as:
class GenProto[T](Protocol): def meth(self) -> T: ...
- get_container_snapshot(request: soulfire.inventory_pb2.GetContainerSnapshotRequest, ctx: connectrpc.request.RequestContext[soulfire.inventory_pb2.GetContainerSnapshotRequest, soulfire.inventory_pb2.GetContainerSnapshotResponse]) soulfire.inventory_pb2.GetContainerSnapshotResponse[source]¶
- count_items(request: soulfire.inventory_pb2.CountItemsRequest, ctx: connectrpc.request.RequestContext[soulfire.inventory_pb2.CountItemsRequest, soulfire.inventory_pb2.CountItemsResponse]) soulfire.inventory_pb2.CountItemsResponse[source]¶
- find_inventory_slots(request: soulfire.inventory_pb2.FindInventorySlotsRequest, ctx: connectrpc.request.RequestContext[soulfire.inventory_pb2.FindInventorySlotsRequest, soulfire.inventory_pb2.FindInventorySlotsResponse]) soulfire.inventory_pb2.FindInventorySlotsResponse[source]¶
- rank_inventory_items(request: soulfire.inventory_pb2.RankInventoryItemsRequest, ctx: connectrpc.request.RequestContext[soulfire.inventory_pb2.RankInventoryItemsRequest, soulfire.inventory_pb2.RankInventoryItemsResponse]) soulfire.inventory_pb2.RankInventoryItemsResponse[source]¶
- move_inventory_item(request: soulfire.inventory_pb2.MoveInventoryItemRequest, ctx: connectrpc.request.RequestContext[soulfire.inventory_pb2.MoveInventoryItemRequest, soulfire.inventory_pb2.InventoryMutationResponse]) soulfire.inventory_pb2.InventoryMutationResponse[source]¶
- transfer_items(request: soulfire.inventory_pb2.TransferItemsRequest, ctx: connectrpc.request.RequestContext[soulfire.inventory_pb2.TransferItemsRequest, soulfire.inventory_pb2.InventoryMutationResponse]) soulfire.inventory_pb2.InventoryMutationResponse[source]¶
- toss_items(request: soulfire.inventory_pb2.TossItemsRequest, ctx: connectrpc.request.RequestContext[soulfire.inventory_pb2.TossItemsRequest, soulfire.inventory_pb2.InventoryMutationResponse]) soulfire.inventory_pb2.InventoryMutationResponse[source]¶
- select_hotbar_item(request: soulfire.inventory_pb2.SelectHotbarItemRequest, ctx: connectrpc.request.RequestContext[soulfire.inventory_pb2.SelectHotbarItemRequest, soulfire.inventory_pb2.InventoryMutationResponse]) soulfire.inventory_pb2.InventoryMutationResponse[source]¶
- equip_item(request: soulfire.inventory_pb2.EquipItemRequest, ctx: connectrpc.request.RequestContext[soulfire.inventory_pb2.EquipItemRequest, soulfire.inventory_pb2.InventoryMutationResponse]) soulfire.inventory_pb2.InventoryMutationResponse[source]¶
- unequip_item(request: soulfire.inventory_pb2.UnequipItemRequest, ctx: connectrpc.request.RequestContext[soulfire.inventory_pb2.UnequipItemRequest, soulfire.inventory_pb2.InventoryMutationResponse]) soulfire.inventory_pb2.InventoryMutationResponse[source]¶
- open_block_container(request: soulfire.inventory_pb2.OpenBlockContainerRequest, ctx: connectrpc.request.RequestContext[soulfire.inventory_pb2.OpenBlockContainerRequest, soulfire.inventory_pb2.InventoryMutationResponse]) soulfire.inventory_pb2.InventoryMutationResponse[source]¶
- close_semantic_container(request: soulfire.inventory_pb2.CloseSemanticContainerRequest, ctx: connectrpc.request.RequestContext[soulfire.inventory_pb2.CloseSemanticContainerRequest, soulfire.inventory_pb2.InventoryMutationResponse]) soulfire.inventory_pb2.InventoryMutationResponse[source]¶