Refactor Traits.fake into a Tags interface for primary production structures +mods

This commit is contained in:
Paul
2009-12-19 19:08:15 -08:00
parent 301873f88e
commit 975624d2f9
5 changed files with 54 additions and 26 deletions

View File

@@ -1,9 +1,10 @@
using OpenRa.Game.GameRules;
using System.Linq;
using System.Collections.Generic;
namespace OpenRa.Game.Traits
{
class Production : IProducer
class Production : IProducer, ITags
{
public Production( Actor self ) { }
@@ -50,6 +51,11 @@ namespace OpenRa.Game.Traits
return true;
}
public IEnumerable<TagType> GetTags()
{
yield return (true) ? TagType.Primary : TagType.None;
}
}
class ProductionSurround : Production