From 587b2ef0d101f81c16662a351589303e8cb76854 Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Wed, 29 Jun 2011 07:44:49 +1200 Subject: [PATCH] convert Buildable trait construction to concise style --- OpenRA.Mods.RA/Buildable.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/OpenRA.Mods.RA/Buildable.cs b/OpenRA.Mods.RA/Buildable.cs index bdb7c2a1ba..2b6c1edbe5 100755 --- a/OpenRA.Mods.RA/Buildable.cs +++ b/OpenRA.Mods.RA/Buildable.cs @@ -12,7 +12,7 @@ using OpenRA.Traits; namespace OpenRA.Mods.RA { - public class BuildableInfo : ITraitInfo + public class BuildableInfo : TraitInfo { 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 { } }