copy constructors

This commit is contained in:
alzeih
2010-04-24 20:14:33 +12:00
parent 53865f974e
commit 429821f6c4
10 changed files with 89 additions and 9 deletions

View File

@@ -50,7 +50,17 @@ namespace OpenRA.Widgets
Animation ready;
Animation clock;
List<string> visibleTabs = new List<string>();
public BuildPaletteWidget() : base() { }
public BuildPaletteWidget(Widget other)
: base(other)
{
throw new NotImplementedException("Why are you Cloning BuildPalette?");
}
public override Widget Clone() { return new BuildPaletteWidget(this); }
public override void Initialize()
{
base.Initialize();