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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user