tiny bit of progress

git-svn-id: svn://svn.ijw.co.nz/svn/OpenRa@1105 993157c7-ee19-0410-b2c4-bb4e9862e678
This commit is contained in:
chrisf
2007-07-05 22:46:58 +00:00
parent 147ce37d11
commit 6490ed8612
2 changed files with 15 additions and 1 deletions

View File

@@ -4,6 +4,8 @@ using System.Text;
using System.Windows.Forms;
using System.Drawing;
using BluntDirectX.Direct3D;
using OpenRa.FileFormats;
using System.IO;
namespace OpenRa.Game
{
@@ -11,14 +13,20 @@ namespace OpenRa.Game
{
GraphicsDevice device;
const string mapName = "scm12ea.ini";
public MainWindow()
{
Text = "OpenRA";
ClientSize = new Size(640, 480);
Visible = true;
device = GraphicsDevice.Create(this, ClientSize.Width, ClientSize.Height, true, false);
IniFile mapFile = new IniFile(File.OpenRead("../../../" + mapName));
Map map = new Map(mapFile);
Text = string.Format("OpenRA - {0} - {1}", map.Title, mapName);
}
internal void Run()

View File

@@ -45,6 +45,12 @@
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\OpenRa.FileFormats\OpenRa.FileFormats.csproj">
<Project>{BDAEAB25-991E-46A7-AF1E-4F0E03358DAA}</Project>
<Name>OpenRa.FileFormats</Name>
</ProjectReference>
</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.