Ejemplo n.º 1
0
        // TODO: Throttle/make this more safe
        public static void Resynchronize(NetState state, CircularBufferReader reader, ref int packetLength)
        {
            var from = state.Mobile;

            if (from == null)
            {
                return;
            }

            state.SendMobileUpdate(from);
            state.SendMobileIncoming(from, from);

            from.SendEverything();

            state.Sequence = 0;
        }