Пример #1
0
        public bool Validator(EquipmentScreenData data)
        {
            if (data.empty != 0)
            {
                return(false);
            }

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

            return(true);
        }
Пример #2
0
        public bool Handler(Player player, byte[] bytes)
        {
            if (bytes.Length < MinSize || bytes.Length > MaxSize)
            {
                return(false);
            }

            EquipmentScreenData EquipmentScreenData = Utility.Deserialize <EquipmentScreenData>(bytes);

            if (Validator(EquipmentScreenData))
            {
                // TODO: Handle the packet by sending various information used in equipment screen

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