Example #1
0
        private void MapSend(IReadOnlyList <byte[]> data)
        {
            _client.SendPacket(new LevelInit());

            for (var i = 0; i < data.Count; i++)
            {
                byte[] a = data[i];
                _client.SendPacket(PacketCreator.CreateMapChunk(a, (byte)((i / data.Count) * 100), a.Length));
            }

            _client.SendPacket(PacketCreator.CreateMapFinal(CurrentMap.GetSize()));
        }