Exemple #1
0
        public static void WriteChunk(this NetOutgoingMessage message, Chunk chunk)
        {
            message.Write(chunk.X);
            message.Write(chunk.Y);
            message.Write(chunk.Z);

            var chunkSerializer = new ChunkSerializer();

            message.WriteBytesWithCompression(chunkSerializer.ToByteArray(chunk));
        }