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

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

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

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

            if (Validator(ZoneLeaveData))
            {
                // TODO: Handle the player zoning out (save/handle loot drops, party stuff, mob hate/follow, etc)

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