Skip to content

Commit 8167944

Browse files
committed
Move Widgets.WidgetArgs to its own file
1 parent ca16dc3 commit 8167944

File tree

2 files changed

+24
-8
lines changed

2 files changed

+24
-8
lines changed

OpenRA.Game/Widgets/Widget.cs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -431,12 +431,4 @@ public T Get<T>(string id) where T : Widget
431431

432432
public Widget Get(string id) { return Get<Widget>(id); }
433433
}
434-
435-
public class WidgetArgs : Dictionary<string, object>
436-
{
437-
public WidgetArgs() { }
438-
public WidgetArgs(Dictionary<string, object> args)
439-
: base(args) { }
440-
public void Add(string key, Action val) { base.Add(key, val); }
441-
}
442434
}

OpenRA.Game/Widgets/WidgetArgs.cs

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#region Copyright & License Information
2+
/*
3+
* Copyright (c) The OpenRA Developers and Contributors
4+
* This file is part of OpenRA, which is free software. It is made
5+
* available to you under the terms of the GNU General Public License
6+
* as published by the Free Software Foundation, either version 3 of
7+
* the License, or (at your option) any later version. For more
8+
* information, see COPYING.
9+
*/
10+
#endregion
11+
12+
using System;
13+
using System.Collections.Generic;
14+
15+
namespace OpenRA.Widgets
16+
{
17+
public class WidgetArgs : Dictionary<string, object>
18+
{
19+
public WidgetArgs() { }
20+
public WidgetArgs(Dictionary<string, object> args)
21+
: base(args) { }
22+
public void Add(string key, Action val) { base.Add(key, val); }
23+
}
24+
}

0 commit comments

Comments
 (0)