-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathScummVM.cs
More file actions
55 lines (43 loc) · 1.57 KB
/
ScummVM.cs
File metadata and controls
55 lines (43 loc) · 1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
using System;
using System.Xml;
namespace GameSaveInfo {
public class ScummVM : ALocation {
public String Name { get; protected set; }
public override string ElementName {
get { return "scummvm"; }
}
public ScummVM(GameVersion parent, XmlElement element)
: base(parent, element) {
}
protected override void LoadData(XmlElement element) {
foreach (XmlAttribute attrib in element.Attributes) {
switch (attrib.Name) {
case "name":
Name = attrib.Value;
break;
default:
throw new NotSupportedException(attrib.Name);
}
}
}
protected override void LoadMoreData(XmlElement element) {
throw new NotImplementedException();
}
protected override XmlElement WriteData(XmlElement element) {
addAtribute(element, "name", Name);
return element;
}
protected override XmlElement WriteMoreData(XmlElement element) {
throw new NotImplementedException();
}
public override int CompareTo(ALocation comparable) {
ScummVM scumm = comparable as ScummVM;
return this.Name.CompareTo(scumm.Name);
}
public Include convertToInclude() {
Include save;
save = new Include(this.Name + "*", null, null);
return save;
}
}
}