Class ItemReplyServerPacket

Reply to using an item

Hierarchy

  • ItemReplyServerPacket

Constructors

Properties

_byteSize: number = 0
_itemType: ItemType = null
_itemTypeData: ItemTypeData
_usedItem: Item = null
_weight: Weight = null

Accessors

  • get action(): PacketAction
  • Returns PacketAction

  • get byteSize(): number
  • Returns the size of the data that this was deserialized from.

    Returns

    The size of the data that this was deserialized from

    Returns number

  • get family(): PacketFamily
  • Returns PacketFamily

  • get itemType(): ItemType
  • Returns ItemType

  • set itemType(itemType: ItemType): void
  • Parameters

    Returns void

  • get itemTypeData(): ItemTypeData
  • Returns data associated with the itemType field.

    Returns

    Data associated with the itemType field

    Returns ItemTypeData

  • set itemTypeData(itemTypeData: ItemTypeData): void
  • Sets data associated with the itemType field.

    Parameters

    Returns void

  • get usedItem(): Item
  • Returns Item

  • set usedItem(usedItem: Item): void
  • Parameters

    Returns void

  • get weight(): Weight
  • Returns Weight

  • set weight(weight: Weight): void
  • Parameters

    Returns void

  • get action(): PacketAction
  • Returns the packet action associated with this type.

    Returns

    The packet action associated with this type

    Returns PacketAction

  • get family(): PacketFamily
  • Returns the packet family associated with this type.

    Returns

    The packet family associated with this type

    Returns PacketFamily

Methods

  • Parameters

    Returns void

  • Deserializes an instance of ItemReplyServerPacket from the provided EoReader.

    Returns

    The deserialized data

    Parameters

    • reader: EoReader

      the reader that the data will be deserialized from

    Returns ItemReplyServerPacket

  • Serializes an instance of ItemReplyServerPacket to the provided EoWriter.

    Parameters

    Returns void

Generated using TypeDoc