Ejemplo n.º 1
0
        public MapWaypointParser(string WorkspaceDir, StinkyParser parser)
        {
            if (!File.Exists(DBPath))
            {
                var doc = new XDocument(new XElement("root"));
                doc.Save(DBPath);
            }

            workspaceDir = WorkspaceDir;
            this.Parser  = parser;
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Load from a file at a specific index
 /// </summary>
 /// <param name="parent"></param>
 /// <param name="FileData"></param>
 /// <param name="index"></param>
 public StinkyLevel(StinkyParser parent, byte[] FileData, int index)
 {
     Parent = parent;
     LoadFromDat(FileData, index);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Loads a <see cref="StinkyLevel"/> from the file data provided
 /// </summary>
 /// <param name="parent"></param>
 /// <param name="FileData"></param>
 public StinkyLevel(StinkyParser parent, string LevelPath) : this(parent, File.ReadAllBytes(LevelPath), 0)
 {
     LevelFilePath = LevelPath;
 }