Пример #1
0
 public ClientPartyRequestEventArgs(PartyRequestInfo i)
 {
     info = i;
 }
Пример #2
0
        public static byte[] SendPartyLeader(PartyRequestInfo i)
        {
            Packet p = new Packet(20);
            p.WriteInt(i.AskerID); // partyID
            p.WriteInt(i.AskerID);
            p.WriteByte((byte)i.Type);

            return p.GetWrittenBuffer(PacketIds.SendPartyLeader);
        }
Пример #3
0
        public static PartyRequestInfo RecvPartyRequest(Packet p)
        {
            p.Skip(2);
            int asker = p.ReadInt();
            int target = p.ReadInt();
            PartyError error = (PartyError)p.ReadByte();
            PartyType type = (PartyType)p.ReadByte();

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

            return i;
        }
Пример #4
0
        public static byte[] SendPartyAnswer(PartyRequestInfo i)
        {
            Packet p = new Packet(20);
            p.WriteInt(i.AskerID);
            p.WriteInt(i.TargetID);
            p.WriteByte((byte)i.Error);
            p.WriteByte((byte)i.Type);

            return p.GetWrittenBuffer(PacketIds.SendPartyAnswer);
        }