Esempio n. 1
0
        public static CommandInfo RecvCommand(Packet p)
        {
            p.Skip(2);
            byte type = p.ReadByte();
            byte action = p.ReadByte();
            byte something = p.ReadByte();
            byte something2 = p.ReadByte();

            CommandInfo c = new CommandInfo
            {
                Type = type,
                Action = action,
                Something = something,
                Something2 = something2
            };

            return c;
        }
Esempio n. 2
0
 public static byte[] SendCommand(Character ch, CommandInfo ci)
 {
     Packet p = new Packet(200);
     p.WriteInt(ch.CharacterId);
     p.WriteByte(ci.Type);
     p.WriteByte(ci.Action);
     p.WriteByte(ci.Something);
     p.WriteByte(ci.Something2);
     return p.GetWrittenBuffer(PacketIds.SendCommand);
 }
Esempio n. 3
0
 public ClientCommandInfoEventArgs(CommandInfo c)
 {
     this.com = c;
 }