Migration to World.Defaults complete (for RA)

This commit is contained in:
alzeih
2010-04-02 02:16:20 +13:00
parent c29733da63
commit 3123b4d83b
14 changed files with 32 additions and 42 deletions

View File

@@ -66,6 +66,7 @@ namespace OpenRA
public readonly Map Map;
public readonly TileSet TileSet;
public GlobalDefaultsInfo Defaults { get {return WorldActor.Info.Traits.Get<GlobalDefaultsInfo>();}}
// for tricky things like bridges.
public readonly ICustomTerrain[,] customTerrain;
@@ -114,7 +115,7 @@ namespace OpenRA
Add( a );
return a;
}
public void Add(Actor a)
{
a.IsInWorld = true;