convert Buildable trait construction to concise style

This commit is contained in:
Chris Forbes
2011-06-29 07:44:49 +12:00
parent 3305d5fad9
commit 587b2ef0d1

View File

@@ -12,7 +12,7 @@ using OpenRA.Traits;
namespace OpenRA.Mods.RA
{
public class BuildableInfo : ITraitInfo
public class BuildableInfo : TraitInfo<Buildable>
{
public readonly string[] Prerequisites = { };
[ActorReference]
@@ -26,8 +26,7 @@ namespace OpenRA.Mods.RA
// todo: UI fluff; doesn't belong here
public readonly int BuildPaletteOrder = 9999;
public readonly string Hotkey = null;
public object Create(ActorInitializer init) { return new Buildable(); }
}
class Buildable { }
public class Buildable { }
}