Example #1
0
 public static byte[] SendGuildJoinAnswer(RequestJoinGuildInfo answer)
 {
     Packet p = new Packet(20);
     p.WriteByte((byte)answer.Answer);
     p.WriteInt(answer.AskerID);
     p.WriteInt(answer.TargetID);
     return p.GetWrittenBuffer(PacketIds.SendJoinGuildAnswer);
 }
Example #2
0
 public ClientRequestJoinGuildEventArgs(RequestJoinGuildInfo i)
 {
     info = i;
 }
Example #3
0
        public static RequestJoinGuildInfo RecvRequestJoinGuild(Packet p)
        {
            p.Skip(2);
            GuildJoinAnswer answer = (GuildJoinAnswer)p.ReadByte();
            int joiner = p.ReadInt();
            int target = p.ReadInt();

            RequestJoinGuildInfo i = new RequestJoinGuildInfo
            {
                Answer = answer,
                AskerID = joiner,
                TargetID = target
            };

            return i;
        }