-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b19dc2c
commit 3579f63
Showing
27 changed files
with
263 additions
and
306 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,50 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Xml; | ||
using XmlData; | ||
namespace GameSaveInfo { | ||
public class Exclude: AFile { | ||
public string Type { get; protected set; } | ||
|
||
public override string ElementName { | ||
get { return "exclude"; } | ||
} | ||
|
||
protected Exclude(string name, string path, string type) : base(name, path) { | ||
Type = type; | ||
} | ||
|
||
public Exclude(Include parent, string name, string path) | ||
: this(parent, name, path, parent.Type) { | ||
} | ||
|
||
|
||
protected Exclude(FileType parent, string name, string path): | ||
this(parent, name, path, parent.Type) { | ||
} | ||
|
||
private Exclude(AXmlDataSubEntry parent, string name, string path, string type) | ||
: base(parent, name, path) { | ||
this.Type = type; | ||
} | ||
|
||
|
||
public Exclude(Include parent, XmlElement element) : this(parent, element, parent.Type) { } | ||
|
||
protected Exclude(FileType parent, XmlElement element) : this(parent, element, parent.Type) { } | ||
|
||
|
||
|
||
private Exclude(AXmlDataSubEntry parent, XmlElement element, string type) | ||
: base(parent, element) { | ||
this.Type = type; | ||
} | ||
|
||
protected override void LoadMoreData(XmlElement element) { | ||
|
||
} | ||
|
||
protected override XmlElement WriteMoreData(XmlElement element) { | ||
return element; | ||
} | ||
} | ||
} | ||
using System.Xml; | ||
using XmlData; | ||
namespace GameSaveInfo { | ||
public class Exclude : AFile { | ||
public string Type { get; protected set; } | ||
|
||
public override string ElementName { | ||
get { return "exclude"; } | ||
} | ||
|
||
protected Exclude(string name, string path, string type) | ||
: base(name, path) { | ||
Type = type; | ||
} | ||
|
||
public Exclude(Include parent, string name, string path) | ||
: this(parent, name, path, parent.Type) { | ||
} | ||
|
||
|
||
protected Exclude(FileType parent, string name, string path) : | ||
this(parent, name, path, parent.Type) { | ||
} | ||
|
||
private Exclude(AXmlDataSubEntry parent, string name, string path, string type) | ||
: base(parent, name, path) { | ||
this.Type = type; | ||
} | ||
|
||
|
||
public Exclude(Include parent, XmlElement element) : this(parent, element, parent.Type) { } | ||
|
||
protected Exclude(FileType parent, XmlElement element) : this(parent, element, parent.Type) { } | ||
|
||
|
||
|
||
private Exclude(AXmlDataSubEntry parent, XmlElement element, string type) | ||
: base(parent, element) { | ||
this.Type = type; | ||
} | ||
|
||
protected override void LoadMoreData(XmlElement element) { | ||
|
||
} | ||
|
||
protected override XmlElement WriteMoreData(XmlElement element) { | ||
return element; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,53 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Xml; | ||
namespace GameSaveInfo { | ||
public class Include: Exclude { | ||
public List<Exclude> Exclusions = new List<Exclude>(); | ||
|
||
public override string ElementName { | ||
get { | ||
return "include"; | ||
} | ||
} | ||
|
||
public Include(string name, string path, string type) | ||
: base(name, path, type) { | ||
} | ||
|
||
public Include(FileType parent, string name, string path) | ||
: base(parent, name, path) { | ||
} | ||
|
||
public Include(FileType parent, XmlElement element) | ||
: base(parent, element) { | ||
} | ||
|
||
protected override void LoadMoreData(XmlElement element) { | ||
foreach (XmlElement child in element.ChildNodes) { | ||
switch (child.Name) { | ||
case "exclude": | ||
Exclude except = new Exclude(this, child); | ||
Exclusions.Add(except); | ||
break; | ||
default: | ||
throw new NotSupportedException(child.Name); | ||
} | ||
} | ||
} | ||
|
||
protected override XmlElement WriteMoreData(XmlElement element) { | ||
foreach (Exclude ex in Exclusions) { | ||
element.AppendChild(ex.XML); | ||
} | ||
return element; | ||
} | ||
|
||
public Exclude addExclusion(string filePath, string fileName) { | ||
Exclude except = new Exclude(this, fileName, filePath); | ||
Exclusions.Add(except); | ||
this.XML.AppendChild(except.XML); | ||
return except; | ||
} | ||
} | ||
} | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Xml; | ||
namespace GameSaveInfo { | ||
public class Include : Exclude { | ||
public List<Exclude> Exclusions = new List<Exclude>(); | ||
|
||
public override string ElementName { | ||
get { | ||
return "include"; | ||
} | ||
} | ||
|
||
public Include(string name, string path, string type) | ||
: base(name, path, type) { | ||
} | ||
|
||
public Include(FileType parent, string name, string path) | ||
: base(parent, name, path) { | ||
} | ||
|
||
public Include(FileType parent, XmlElement element) | ||
: base(parent, element) { | ||
} | ||
|
||
protected override void LoadMoreData(XmlElement element) { | ||
foreach (XmlElement child in element.ChildNodes) { | ||
switch (child.Name) { | ||
case "exclude": | ||
Exclude except = new Exclude(this, child); | ||
Exclusions.Add(except); | ||
break; | ||
default: | ||
throw new NotSupportedException(child.Name); | ||
} | ||
} | ||
} | ||
|
||
protected override XmlElement WriteMoreData(XmlElement element) { | ||
foreach (Exclude ex in Exclusions) { | ||
element.AppendChild(ex.XML); | ||
} | ||
return element; | ||
} | ||
|
||
public Exclude addExclusion(string filePath, string fileName) { | ||
Exclude except = new Exclude(this, fileName, filePath); | ||
Exclusions.Add(except); | ||
this.XML.AppendChild(except.XML); | ||
return except; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.