BIM/UIM become traits on World; Added World.WorldActor

This commit is contained in:
Bob
2010-01-29 19:57:21 +13:00
parent 7283bc5273
commit 206e4fb558
21 changed files with 73 additions and 64 deletions

View File

@@ -1,5 +1,6 @@
using System;
using OpenRa.FileFormats;
using OpenRa.Traits;
namespace OpenRa
{
@@ -28,7 +29,7 @@ namespace OpenRa
public static bool OreCanSpreadInto(this World world, int i, int j)
{
if (world.BuildingInfluence.GetBuildingAt(new int2(i, j)) != null)
if (world.WorldActor.traits.Get<BuildingInfluence>().GetBuildingAt(new int2(i, j)) != null)
return false;
return TerrainCosts.Cost(UnitMovementType.Wheel,