smart queries for World.Actors

This commit is contained in:
Bob
2010-01-31 01:27:50 +13:00
parent c012cf3c7f
commit 73c16d5d9d
23 changed files with 201 additions and 64 deletions

View File

@@ -126,7 +126,7 @@ namespace OpenRa.Graphics
public void GoToStartLocation( Player player )
{
Center(player.World.Actors.Where(a => a.Owner == player && a.traits.Contains<Selectable>()));
Center( player.World.Queries.OwnedBy[ player ].WithTrait<Selectable>().Select( a => a.Actor ) );
}
}
}