GCMC/GCMCTest/Program.cs
Norbi Peti 3e3fd0c767 Cleanup, added INI file and parser lib (merged)
Updated plugin and removed commands that don't really belong here
Using ILMerge to merge the parser into the DLL
2020-05-19 01:16:40 +02:00

34 lines
1,003 B
C#

using System;
using System.Threading.Channels;
using GCMC;
namespace GCMCTest
{
class Program
{
static void Main(string[] args)
{
/*var nbtFile = new NbtFile();
nbtFile.LoadFromFile("r.-1.-1.mca", NbtCompression.None, tag =>
{
Console.WriteLine(tag);
return true;
});
Console.WriteLine(nbtFile);*/
/*using (var rf = new RegionFile("r.-1.-1.mca"))
{
Console.WriteLine(rf);
Console.WriteLine(rf.HasChunk(1, 2));
Console.WriteLine(rf.LastModified + " " + rf.SizeDelta);
foreach (var br in rf.GetChunks())
{
var nbt = new NbtFile();
nbt.LoadFromStream(br.BaseStream, NbtCompression.AutoDetect);
Console.WriteLine(nbt);
Console.WriteLine(nbt.RootTag);
}
}*/
}
}
}