move replay viewer delegate into mod

This commit is contained in:
Chris Forbes
2010-12-19 17:41:39 +13:00
parent 9482955a83
commit 2fad6f3bf1
7 changed files with 14 additions and 8 deletions

View File

@@ -13,7 +13,7 @@ using System.IO;
namespace OpenRA.Network
{
static class OrderIO
public static class OrderIO
{
public static void Write(this Stream s, byte[] buf)
{

View File

@@ -6,7 +6,7 @@ using System.IO;
namespace OpenRA.Network
{
class ReplayConnection : IConnection
public class ReplayConnection : IConnection
{
//uint nextFrame = 1;
FileStream replayStream;

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
@@ -201,7 +201,6 @@
<Compile Include="TraitDictionary.cs" />
<Compile Include="Traits\Activities\CancelableActivity.cs" />
<Compile Include="Traits\SharesCell.cs" />
<Compile Include="Widgets\Delegates\ReplayBrowserDelegate.cs" />
<Compile Include="Widgets\PasswordFieldWidget.cs" />
<Compile Include="Widgets\ScrollingTextWidget.cs" />
</ItemGroup>
@@ -225,6 +224,9 @@
<ItemGroup>
<Content Include="OpenRA.ico" />
</ItemGroup>
<ItemGroup>
<Folder Include="Widgets\Delegates\" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.

View File

@@ -12,7 +12,7 @@ using System.Collections.Generic;
using OpenRA.FileFormats;
using OpenRA.Graphics;
using OpenRA.Traits;
using OpenRA.Widgets.Delegates;
using OpenRA.Mods.RA.Widgets.Delegates;
namespace OpenRA.Mods.RA
{

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
@@ -259,6 +259,7 @@
<Compile Include="Widgets\BuildPaletteWidget.cs" />
<Compile Include="Widgets\Delegates\IngameObserverChromeDelegate.cs" />
<Compile Include="Widgets\Delegates\IngameChromeDelegate.cs" />
<Compile Include="Widgets\Delegates\ReplayBrowserDelegate.cs" />
<Compile Include="Widgets\MoneyBinWidget.cs" />
<Compile Include="Widgets\OrderButtonWidget.cs" />
<Compile Include="Widgets\PowerBinWidget.cs" />

View File

@@ -7,6 +7,7 @@
* see LICENSE.
*/
#endregion
using System;
using System.Collections.Generic;
using System.Drawing;
@@ -14,8 +15,9 @@ using System.Linq;
using OpenRA.FileFormats;
using OpenRA.Network;
using OpenRA.Graphics;
using OpenRA.Widgets;
namespace OpenRA.Widgets.Delegates
namespace OpenRA.Mods.RA.Widgets.Delegates
{
public class LobbyDelegate : IWidgetDelegate
{

View File

@@ -13,8 +13,9 @@ using System.Drawing;
using System.IO;
using OpenRA.FileFormats;
using OpenRA.Network;
using OpenRA.Widgets;
namespace OpenRA.Widgets.Delegates
namespace OpenRA.Mods.RA.Widgets.Delegates
{
public class ReplayBrowserDelegate : IWidgetDelegate
{