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); }
public ClientAddToPartyRequestEventArgs(AddToPartyRequestInfo i) { info = i; }
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; }