Esempio n. 1
0
        public void Handle(NetworkManager nm, Bot core)
        {
            var tempLength = core.ClientWorld.BlockArray.Length;

            var temp = new byte[core.ClientWorld.BlockArray.Length];
            Buffer.BlockCopy(core.ClientWorld.BlockArray, 0, temp, 0, temp.Length);

            core.ClientWorld.BlockArray = new byte[tempLength + Length];
            Buffer.BlockCopy(temp, 0, core.ClientWorld.BlockArray, 0, temp.Length);
            Buffer.BlockCopy(Data, 0, core.ClientWorld.BlockArray, tempLength, Length);

            core.raiseDebugMessage("Map chunk size: " + Length + " Percent: " + Percent);
            core.RaiseLevelProgress(Percent);
        }