NBTExplorer/Substrate/SubstrateCS/Source/PlayerFile.cs

28 lines
587 B
C#
Raw Normal View History

using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using Ionic.Zlib;
namespace Substrate
{
public class PlayerFile : NBTFile
{
public PlayerFile (string path)
: base(path)
{
}
public PlayerFile (string path, string name)
: base("")
{
if (!Directory.Exists(path)) {
Directory.CreateDirectory(path);
}
string file = name + ".dat";
_filename = Path.Combine(path, file);
}
}
}