moving Map, TileSet from Rules to World

This commit is contained in:
Bob
2010-01-17 12:18:26 +13:00
parent fa421410fe
commit 1ec3ee60eb
19 changed files with 135 additions and 130 deletions

View File

@@ -2,6 +2,7 @@ using System;
using System.Collections.Generic;
using OpenRa.Effects;
using OpenRa.Support;
using OpenRa.FileFormats;
namespace OpenRa
{
@@ -11,6 +12,16 @@ namespace OpenRa
List<IEffect> effects = new List<IEffect>();
List<Action<World>> frameEndActions = new List<Action<World>>();
public readonly Map Map;
public readonly TileSet TileSet;
public World()
{
Map = new Map( Rules.AllRules );
FileSystem.MountTemporary( new Package( Map.Theater + ".mix" ) );
TileSet = new TileSet( Map.TileSuffix );
}
public void Add(Actor a)
{
a.IsInWorld = true;