set editor to x86-only; editor loads rules

This commit is contained in:
Chris Forbes
2010-05-09 13:02:21 +12:00
parent 9332332771
commit e06b2dd9e6
3 changed files with 11 additions and 3 deletions

View File

@@ -1,10 +1,10 @@
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Drawing.Imaging;
using System.IO;
using System.Windows.Forms;
using OpenRA.FileFormats;
using System.Drawing.Imaging;
namespace OpenRA.Editor
{
@@ -15,7 +15,7 @@ namespace OpenRA.Editor
InitializeComponent();
LocateGameRoot();
LoadMap("cnc", "scm01ea");
LoadMap("ra", "scm01ea");
}
void LoadMap(string mod, string mapname)
@@ -32,6 +32,9 @@ namespace OpenRA.Editor
// load the map
var map = new Map(new Folder("mods/{0}/maps/{1}".F(mod, mapname)));
Game.LoadModAssemblies(manifest);
Rules.LoadRules(manifest, map);
// we're also going to need a tileset...
var tsinfo = fileMapping[Pair.New(mods[0], map.Theater)];
var tileset = new TileSet("tileset.til", "templates.ini", tsinfo.First);