Buildings now aware of what race they are owned by

git-svn-id: svn://svn.ijw.co.nz/svn/OpenRa@1134 993157c7-ee19-0410-b2c4-bb4e9862e678
This commit is contained in:
beedee
2007-07-07 07:57:07 +00:00
parent a8ea8d624a
commit 3f052e425f
3 changed files with 27 additions and 1 deletions

View File

@@ -7,6 +7,13 @@ using System.IO;
namespace OpenRa.TechTreeTest
{
[Flags]
public enum BuildingRace
{
Allies = 1,
Soviet = 2
}
class Building
{
readonly string friendlyName;
@@ -38,6 +45,14 @@ namespace OpenRa.TechTreeTest
set { techLevel = value; }
}
BuildingRace owner;
public BuildingRace Owner
{
get { return owner; }
set { owner = value; }
}
public Building(string tag, string friendlyName)
{
this.friendlyName = friendlyName;