added Country/CountryInfo trait for World
This commit is contained in:
@@ -120,6 +120,7 @@
|
|||||||
<Compile Include="Traits\Attack\AttackOmni.cs" />
|
<Compile Include="Traits\Attack\AttackOmni.cs" />
|
||||||
<Compile Include="Traits\World\BridgeLoadHook.cs" />
|
<Compile Include="Traits\World\BridgeLoadHook.cs" />
|
||||||
<Compile Include="Traits\World\ChoosePaletteOnSelect.cs" />
|
<Compile Include="Traits\World\ChoosePaletteOnSelect.cs" />
|
||||||
|
<Compile Include="Traits\World\Country.cs" />
|
||||||
<Compile Include="Traits\World\CrateSpawner.cs" />
|
<Compile Include="Traits\World\CrateSpawner.cs" />
|
||||||
<Compile Include="Traits\World\OreGrowth.cs" />
|
<Compile Include="Traits\World\OreGrowth.cs" />
|
||||||
<Compile Include="Traits\OreRefinery.cs" />
|
<Compile Include="Traits\OreRefinery.cs" />
|
||||||
|
|||||||
19
OpenRa.Game/Traits/World/Country.cs
Normal file
19
OpenRa.Game/Traits/World/Country.cs
Normal 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 */ }
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user