moving Map, TileSet from Rules to World
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user