-
Notifications
You must be signed in to change notification settings - Fork 5
/
TechnoType.cs
42 lines (35 loc) · 1004 Bytes
/
TechnoType.cs
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
using System;
using System.IO;
namespace AIEdit
{
public class TechnoType : IParamListEntry, IComparable<TechnoType>
{
private string name, owner, id;
private int cost;
private uint tableIndex;
public TechnoType(string id, string name, int cost, uint tableIndex)
{
this.id = id;
this.name = name;
this.owner = "";
this.cost = cost;
this.tableIndex = tableIndex;
}
public string Name { get { return name; } set { name = value; } }
public string Owner { get { return owner; } set { owner = value; } }
public string ID { get { return id; } set { id = value; } }
public int Cost { get { return cost; } set { cost = value; } }
public uint TableIndex { get { return tableIndex; } }
public int CompareTo(TechnoType other)
{
return this.name.CompareTo((other as TechnoType).name);
}
public override string ToString()
{
return name;
}
public void Write(StreamWriter stream)
{ }
public uint ParamListIndex { get { return tableIndex; } }
}
}