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

@@ -14,6 +14,16 @@ namespace OpenRA.Widgets
Sprite mapChooserSprite;
bool mapPreviewDirty = true;
MapStub lastMap;
public MapPreviewWidget() : base() { }
public MapPreviewWidget(Widget other)
: base(other)
{
lastMap = (other as MapPreviewWidget).lastMap;
}
public override Widget Clone() { return new MapPreviewWidget(this); }
public override void Draw( World world )
{