Exemplo n.º 1
0
        public bool Validator(ZoneSuccessData data)
        {
            if (data.confirmation != 2)
            {
                return(false);
            }

            Logger.Success("we got 0x011");

            return(true);
        }
Exemplo n.º 2
0
        public bool Handler(Player player, byte[] bytes)
        {
            if (bytes.Length < MinSize || bytes.Length > MaxSize)
            {
                return(false);
            }

            ZoneSuccessData zoneSuccessData = Utility.Deserialize <ZoneSuccessData>(bytes);

            if (Validator(zoneSuccessData))
            {
                // TODO: Handle the packet by sending equipment info (0x50) chunks

                return(true);
            }
            return(false);
        }