Class ItemReplyServerPacket
Reply to using an item
[Generated]
public class ItemReplyServerPacket : IPacket, ISerializable
- Inheritance
-
ItemReplyServerPacket
- Implements
- Inherited Members
Constructors
ItemReplyServerPacket()
public ItemReplyServerPacket()
Properties
Action
Gets the packet action associated with this packet
public PacketAction Action { get; }
Property Value
ByteSize
Gets the size of the data that this object was deserialized from, or 0 for an object that was not deserialized.
public int ByteSize { get; }
Property Value
Family
Gets the packet family associated with this packet
public PacketFamily Family { get; }
Property Value
ItemType
public ItemType ItemType { get; set; }
Property Value
ItemTypeData
public ItemReplyServerPacket.IItemTypeData ItemTypeData { get; set; }
Property Value
UsedItem
public Item UsedItem { get; set; }
Property Value
Weight
public Weight Weight { get; set; }
Property Value
Methods
Deserialize(EoReader)
Deserialize the EO binary data representation of this object from an EoReader.
public void Deserialize(EoReader reader)
Parameters
readerEoReaderThe reader from which this object should be read.
Equals(object)
public override bool Equals(object other)
Parameters
otherobject
Returns
ForAccessory()
Creates a new ItemReplyServerPacket with ItemType set to Accessory.
public static ItemReplyServerPacket ForAccessory()
Returns
ForAlcohol()
Creates a new ItemReplyServerPacket with ItemType set to Alcohol.
public static ItemReplyServerPacket ForAlcohol()
Returns
ForArmlet()
Creates a new ItemReplyServerPacket with ItemType set to Armlet.
public static ItemReplyServerPacket ForArmlet()
Returns
ForArmor()
Creates a new ItemReplyServerPacket with ItemType set to Armor.
public static ItemReplyServerPacket ForArmor()
Returns
ForBelt()
Creates a new ItemReplyServerPacket with ItemType set to Belt.
public static ItemReplyServerPacket ForBelt()
Returns
ForBoots()
Creates a new ItemReplyServerPacket with ItemType set to Boots.
public static ItemReplyServerPacket ForBoots()
Returns
ForBracer()
Creates a new ItemReplyServerPacket with ItemType set to Bracer.
public static ItemReplyServerPacket ForBracer()
Returns
ForCureCurse(ItemTypeDataCureCurse)
Creates a new ItemReplyServerPacket with ItemType set to CureCurse and ItemTypeData set to data.
public static ItemReplyServerPacket ForCureCurse(ItemReplyServerPacket.ItemTypeDataCureCurse data)
Parameters
dataItemReplyServerPacket.ItemTypeDataCureCurseThe data for the case.
Returns
Exceptions
- ArgumentNullException
Thrown when
datais null.
ForCurrency()
Creates a new ItemReplyServerPacket with ItemType set to Currency.
public static ItemReplyServerPacket ForCurrency()
Returns
ForEffectPotion(ItemTypeDataEffectPotion)
Creates a new ItemReplyServerPacket with ItemType set to EffectPotion and ItemTypeData set to data.
public static ItemReplyServerPacket ForEffectPotion(ItemReplyServerPacket.ItemTypeDataEffectPotion data)
Parameters
dataItemReplyServerPacket.ItemTypeDataEffectPotionThe data for the case.
Returns
Exceptions
- ArgumentNullException
Thrown when
datais null.
ForExpReward(ItemTypeDataExpReward)
Creates a new ItemReplyServerPacket with ItemType set to ExpReward and ItemTypeData set to data.
public static ItemReplyServerPacket ForExpReward(ItemReplyServerPacket.ItemTypeDataExpReward data)
Parameters
dataItemReplyServerPacket.ItemTypeDataExpRewardThe data for the case.
Returns
Exceptions
- ArgumentNullException
Thrown when
datais null.
ForGeneral()
Creates a new ItemReplyServerPacket with ItemType set to General.
public static ItemReplyServerPacket ForGeneral()
Returns
ForGloves()
Creates a new ItemReplyServerPacket with ItemType set to Gloves.
public static ItemReplyServerPacket ForGloves()
Returns
ForHairDye(ItemTypeDataHairDye)
Creates a new ItemReplyServerPacket with ItemType set to HairDye and ItemTypeData set to data.
public static ItemReplyServerPacket ForHairDye(ItemReplyServerPacket.ItemTypeDataHairDye data)
Parameters
dataItemReplyServerPacket.ItemTypeDataHairDyeThe data for the case.
Returns
Exceptions
- ArgumentNullException
Thrown when
datais null.
ForHat()
Creates a new ItemReplyServerPacket with ItemType set to Hat.
public static ItemReplyServerPacket ForHat()
Returns
ForHeal(ItemTypeDataHeal)
Creates a new ItemReplyServerPacket with ItemType set to Heal and ItemTypeData set to data.
public static ItemReplyServerPacket ForHeal(ItemReplyServerPacket.ItemTypeDataHeal data)
Parameters
dataItemReplyServerPacket.ItemTypeDataHealThe data for the case.
Returns
Exceptions
- ArgumentNullException
Thrown when
datais null.
ForKey()
Creates a new ItemReplyServerPacket with ItemType set to Key.
public static ItemReplyServerPacket ForKey()
Returns
ForNecklace()
Creates a new ItemReplyServerPacket with ItemType set to Necklace.
public static ItemReplyServerPacket ForNecklace()
Returns
ForReserved1()
Creates a new ItemReplyServerPacket with ItemType set to Reserved1.
public static ItemReplyServerPacket ForReserved1()
Returns
ForReserved26()
Creates a new ItemReplyServerPacket with ItemType set to Reserved26.
public static ItemReplyServerPacket ForReserved26()
Returns
ForReserved27()
Creates a new ItemReplyServerPacket with ItemType set to Reserved27.
public static ItemReplyServerPacket ForReserved27()
Returns
ForReserved28()
Creates a new ItemReplyServerPacket with ItemType set to Reserved28.
public static ItemReplyServerPacket ForReserved28()
Returns
ForReserved29()
Creates a new ItemReplyServerPacket with ItemType set to Reserved29.
public static ItemReplyServerPacket ForReserved29()
Returns
ForReserved5()
Creates a new ItemReplyServerPacket with ItemType set to Reserved5.
public static ItemReplyServerPacket ForReserved5()
Returns
ForReserved7()
Creates a new ItemReplyServerPacket with ItemType set to Reserved7.
public static ItemReplyServerPacket ForReserved7()
Returns
ForReserved8()
Creates a new ItemReplyServerPacket with ItemType set to Reserved8.
public static ItemReplyServerPacket ForReserved8()
Returns
ForRing()
Creates a new ItemReplyServerPacket with ItemType set to Ring.
public static ItemReplyServerPacket ForRing()
Returns
ForShield()
Creates a new ItemReplyServerPacket with ItemType set to Shield.
public static ItemReplyServerPacket ForShield()
Returns
ForTeleport()
Creates a new ItemReplyServerPacket with ItemType set to Teleport.
public static ItemReplyServerPacket ForTeleport()
Returns
ForWeapon()
Creates a new ItemReplyServerPacket with ItemType set to Weapon.
public static ItemReplyServerPacket ForWeapon()
Returns
GetHashCode()
public override int GetHashCode()
Returns
Serialize(EoWriter)
Serialize this object to an EoWriter in the EO binary data representation.
public void Serialize(EoWriter writer)
Parameters
writerEoWriterThe writer to which this object should be written.
ToString()
public override string ToString()