remove a redundant method from queries.
This commit is contained in:
@@ -167,7 +167,7 @@ namespace OpenRA
|
||||
if (!DisableTick)
|
||||
{
|
||||
actors.Do( x => x.Tick() );
|
||||
Queries.WithTraitMultiple<ITick>().DoTimed( x =>
|
||||
Queries.WithTrait<ITick>().DoTimed( x =>
|
||||
{
|
||||
x.Trait.Tick( x.Actor );
|
||||
}, "[{2}] Trait: {0} ({1:0.000} ms)", Game.Settings.Debug.LongTickThreshold );
|
||||
@@ -241,11 +241,6 @@ namespace OpenRA
|
||||
return ret;
|
||||
}
|
||||
|
||||
public IEnumerable<TraitPair<T>> WithTraitMultiple<T>()
|
||||
{
|
||||
return world.traitDict.ActorsWithTraitMultiple<T>( world );
|
||||
}
|
||||
|
||||
public class OwnedByCachedView : CachedView<Actor, Actor>
|
||||
{
|
||||
readonly TypeDictionary hasTrait = new TypeDictionary();
|
||||
|
||||
Reference in New Issue
Block a user