added Country/CountryInfo trait for World

This commit is contained in:
Chris Forbes
2010-02-10 14:51:26 +13:00
parent d03fdc00be
commit b7ade669fa
2 changed files with 20 additions and 0 deletions

View File

@@ -120,6 +120,7 @@
<Compile Include="Traits\Attack\AttackOmni.cs" />
<Compile Include="Traits\World\BridgeLoadHook.cs" />
<Compile Include="Traits\World\ChoosePaletteOnSelect.cs" />
<Compile Include="Traits\World\Country.cs" />
<Compile Include="Traits\World\CrateSpawner.cs" />
<Compile Include="Traits\World\OreGrowth.cs" />
<Compile Include="Traits\OreRefinery.cs" />

View File

@@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace OpenRa.Traits
{
class CountryInfo : ITraitInfo
{
public readonly string Name = null;
public readonly string Race = null;
/* todo: icon,... */
public object Create(Actor self) { return new CountryInfo(); }
}
class Country { /* we're only interested in the Info */ }
}