Refactor Traits.fake into a Tags interface for primary production structures +mods
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user