soulfire.inventory_connect.InventoryService¶
- class soulfire.inventory_connect.InventoryService[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: ...
- async 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]¶
- async count_items(request: soulfire.inventory_pb2.CountItemsRequest, ctx: connectrpc.request.RequestContext[soulfire.inventory_pb2.CountItemsRequest, soulfire.inventory_pb2.CountItemsResponse]) soulfire.inventory_pb2.CountItemsResponse[source]¶
- async 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]¶
- async 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]¶
- async 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]¶
- async transfer_items(request: soulfire.inventory_pb2.TransferItemsRequest, ctx: connectrpc.request.RequestContext[soulfire.inventory_pb2.TransferItemsRequest, soulfire.inventory_pb2.InventoryMutationResponse]) soulfire.inventory_pb2.InventoryMutationResponse[source]¶
- async toss_items(request: soulfire.inventory_pb2.TossItemsRequest, ctx: connectrpc.request.RequestContext[soulfire.inventory_pb2.TossItemsRequest, soulfire.inventory_pb2.InventoryMutationResponse]) soulfire.inventory_pb2.InventoryMutationResponse[source]¶
- async 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]¶
- async equip_item(request: soulfire.inventory_pb2.EquipItemRequest, ctx: connectrpc.request.RequestContext[soulfire.inventory_pb2.EquipItemRequest, soulfire.inventory_pb2.InventoryMutationResponse]) soulfire.inventory_pb2.InventoryMutationResponse[source]¶
- async unequip_item(request: soulfire.inventory_pb2.UnequipItemRequest, ctx: connectrpc.request.RequestContext[soulfire.inventory_pb2.UnequipItemRequest, soulfire.inventory_pb2.InventoryMutationResponse]) soulfire.inventory_pb2.InventoryMutationResponse[source]¶
- async 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]¶
- async 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]¶