Exemplo n.º 1
0
        internal void Reset()
        {
            UsingExtPlayerList      = false;
            UsingPlayerClick        = false;
            SupportsPartialMessages = false;
            SupportsFullCP437       = false;
            addEntityHack           = true;

            for (int i = 0; i < handlers.Length; i++)
            {
                handlers[i]    = null;
                packetSizes[i] = 0;
            }
            if (classic == null)
            {
                return;                              // null if no successful connection ever made before
            }
            classic.Reset();
            cpe.Reset();
            cpeBlockDefs.Reset();

            reader.ExtendedPositions = false; reader.ExtendedBlocks = false;
            writer.ExtendedPositions = false; writer.ExtendedBlocks = false;
            BlockInfo.SetMaxUsed(255);
        }
Exemplo n.º 2
0
        void ResetState()
        {
            if (classic == null)
            {
                return;                              // null if no successful connection ever made before
            }
            cpeData.Reset();
            classic.Reset();
            cpe.Reset();
            cpeBlockDefs.Reset();
            wom.Reset();

            reader.ExtendedPositions = false; reader.ExtendedBlocks = false;
            writer.ExtendedPositions = false; writer.ExtendedBlocks = false;
        }
Exemplo n.º 3
0
        internal void Reset()
        {
            UsingExtPlayerList      = false;
            UsingPlayerClick        = false;
            SupportsPartialMessages = false;
            SupportsFullCP437       = false;
            addEntityHack           = true;

            for (int i = 0; i < handlers.Length; i++)
            {
                handlers[i]    = null;
                packetSizes[i] = 0;
            }

            classic.Reset();
            cpe.Reset();
            cpeBlockDefs.Reset();

            reader.ExtendedPositions = false;
            writer.ExtendedPositions = false;
        }