Exemple #1
0
        /// <inheritdoc />
        public void ItemPriceSetResponse(byte itemSlot, ItemPriceResult result)
        {
            var packet = new byte[5];

            packet[0] = 0xC3;
            packet[1] = (byte)packet.Length;
            packet[2] = 0x3F;
            packet[3] = (byte)result;
            packet[4] = itemSlot;
        }
Exemple #2
0
 /// <inheritdoc />
 public void ItemPriceSetResponse(byte itemSlot, ItemPriceResult result)
 {
     using (var writer = this.connection.StartSafeWrite(0xC3, 5))
     {
         var packet = writer.Span;
         packet[2] = 0x3F;
         packet[3] = (byte)result;
         packet[4] = itemSlot;
         writer.Commit();
     }
 }