﻿using common;

namespace wServer.networking.packets.outgoing
{
    public class InvResult : OutgoingMessage
    {
        public int Result { get; set; }

        public override PacketId ID => PacketId.INVRESULT;
        public override Packet CreateInstance() { return new InvResult(); }

        protected override void Read(NReader rdr)
        {
            Result = rdr.ReadInt32();
        }
        protected override void Write(NWriter wtr)
        {
            wtr.Write(Result);
        }
    }
}
