UNPKG

@inworld/web-core

Version:
18 lines (17 loc) 774 B
import { EntityItemProps, ItemsInEntitiesOperationType } from '../common/data_structures/index.js'; import { InworldPacket } from '../entities/packets/inworld_packet.entity.js'; import { ConnectionService } from './connection.service.js'; export declare class EntityService<InworldPacketT extends InworldPacket = InworldPacket> { private connection; constructor(connection: ConnectionService<InworldPacketT>); createOrUpdateItems(props: { items: EntityItemProps[]; addToEntities: string[]; }): Promise<InworldPacketT>; removeItems(ids: string[]): Promise<InworldPacketT>; itemsInEntities(props: { type: ItemsInEntitiesOperationType; itemIds: string[]; entityNames: string[]; }): Promise<InworldPacketT>; }