2011-04-07 07:03:54 +00:00
|
|
|
|
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("")
|
|
|
|
|
{
|
2011-06-03 05:16:12 +00:00
|
|
|
|
if (!Directory.Exists(path)) {
|
|
|
|
|
Directory.CreateDirectory(path);
|
|
|
|
|
}
|
|
|
|
|
|
2011-04-07 07:03:54 +00:00
|
|
|
|
string file = name + ".dat";
|
|
|
|
|
_filename = Path.Combine(path, file);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|