예제 #1
0
        public static byte[] SendAddToPartyAnswer(AddToPartyRequestInfo i)
        {
            Packet p = new Packet(20);
            p.WriteInt(i.AskerID);
            p.WriteInt(i.TargetID);
            p.WriteByte((byte)i.Error);

            return p.GetWrittenBuffer(PacketIds.SendAddToPartyAnswer);
        }
예제 #2
0
 public ClientAddToPartyRequestEventArgs(AddToPartyRequestInfo i)
 {
     info = i;
 }
예제 #3
0
        public static AddToPartyRequestInfo RecvAddToPartyRequest(Packet p)
        {
            p.Skip(2);
            int asker = p.ReadInt();
            int target = p.ReadInt();
            PartyError error = (PartyError)p.ReadByte();
            PartyType type = (PartyType)p.ReadByte();

            AddToPartyRequestInfo i = new AddToPartyRequestInfo
            {
                AskerID = asker,
                TargetID = target,
                Error = error,
                Type = type
            };

            return i;
        }