using StatelessTraitInfo<> for some things
This commit is contained in:
@@ -5,17 +5,12 @@ using System.Text;
|
||||
|
||||
namespace OpenRa.Game.Traits
|
||||
{
|
||||
class SelectableInfo : ITraitInfo
|
||||
class SelectableInfo : StatelessTraitInfo<Selectable>
|
||||
{
|
||||
public readonly int Priority = 10;
|
||||
public readonly int[] Bounds = null;
|
||||
public readonly string Voice = "GenericVoice";
|
||||
|
||||
public object Create(Actor self) { return new Selectable(self); }
|
||||
}
|
||||
|
||||
class Selectable
|
||||
{
|
||||
public Selectable( Actor self ) { }
|
||||
}
|
||||
class Selectable {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user