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:
@@ -4,6 +4,8 @@ using System.Text;
|
|||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using BluntDirectX.Direct3D;
|
using BluntDirectX.Direct3D;
|
||||||
|
using OpenRa.FileFormats;
|
||||||
|
using System.IO;
|
||||||
|
|
||||||
namespace OpenRa.Game
|
namespace OpenRa.Game
|
||||||
{
|
{
|
||||||
@@ -11,14 +13,20 @@ namespace OpenRa.Game
|
|||||||
{
|
{
|
||||||
GraphicsDevice device;
|
GraphicsDevice device;
|
||||||
|
|
||||||
|
const string mapName = "scm12ea.ini";
|
||||||
|
|
||||||
public MainWindow()
|
public MainWindow()
|
||||||
{
|
{
|
||||||
Text = "OpenRA";
|
|
||||||
ClientSize = new Size(640, 480);
|
ClientSize = new Size(640, 480);
|
||||||
|
|
||||||
Visible = true;
|
Visible = true;
|
||||||
|
|
||||||
device = GraphicsDevice.Create(this, ClientSize.Width, ClientSize.Height, true, false);
|
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()
|
internal void Run()
|
||||||
|
|||||||
@@ -45,6 +45,12 @@
|
|||||||
<Compile Include="Program.cs" />
|
<Compile Include="Program.cs" />
|
||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
</ItemGroup>
|
</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" />
|
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
<!-- 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.
|
Other similar extension points exist, see Microsoft.Common.targets.
|
||||||
|
|||||||
Reference in New Issue
Block a user