Skip to content

Commit

Permalink
Entitylookup method renames (#23519)
Browse files Browse the repository at this point in the history
  • Loading branch information
metalgearsloth authored Jan 14, 2024
1 parent 9063cfe commit 1f3a29c
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Content.Server/Abilities/Mime/MimePowersSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ private void OnInvisibleWall(EntityUid uid, MimePowersComponent component, Invis
}

// Check there are no mobs there
foreach (var entity in _lookupSystem.GetEntitiesIntersecting(tile.Value, 0f))
foreach (var entity in _lookupSystem.GetLocalEntitiesIntersecting(tile.Value, 0f))
{
if (HasComp<MobStateComponent>(entity) && entity != uid)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public sealed partial class CleanTileReaction : ITileReaction
FixedPoint2 ITileReaction.TileReact(TileRef tile, ReagentPrototype reagent, FixedPoint2 reactVolume)
{
var entMan = IoCManager.Resolve<IEntityManager>();
var entities = entMan.System<EntityLookupSystem>().GetEntitiesIntersecting(tile, 0f).ToArray();
var entities = entMan.System<EntityLookupSystem>().GetLocalEntitiesIntersecting(tile, 0f).ToArray();
var puddleQuery = entMan.GetEntityQuery<PuddleComponent>();
var solutionContainerSystem = entMan.System<SolutionContainerSystem>();
// Multiply as the amount we can actually purge is higher than the react amount.
Expand Down
2 changes: 1 addition & 1 deletion Content.Server/Electrocution/ElectrocutionSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ private bool IsPowered(EntityUid uid, ElectrifiedComponent electrified, Transfor

if (tileRef != null)
{
foreach (var entity in _entityLookup.GetEntitiesIntersecting(tileRef.Value, flags: LookupFlags.StaticSundries))
foreach (var entity in _entityLookup.GetLocalEntitiesIntersecting(tileRef.Value, flags: LookupFlags.StaticSundries))
{
if (_tag.HasTag(entity, "Window"))
return false;
Expand Down
2 changes: 1 addition & 1 deletion Content.Server/NPC/Pathfinding/PathfindingSystem.Grid.cs
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ private void BuildBreadcrumbs(GridPathfindingChunk chunk, Entity<MapGridComponen
// var isBorder = x < 0 || y < 0 || x == ChunkSize - 1 || y == ChunkSize - 1;

tileEntities.Clear();
var available = _lookup.GetEntitiesIntersecting(tile, flags: LookupFlags.Dynamic | LookupFlags.Static);
var available = _lookup.GetLocalEntitiesIntersecting(tile, flags: LookupFlags.Dynamic | LookupFlags.Static);

foreach (var ent in available)
{
Expand Down
2 changes: 1 addition & 1 deletion Content.Server/Physics/Controllers/ConveyorController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ private void AwakenEntities(EntityUid uid, ConveyorComponent component)

if (beltTileRef != null)
{
var intersecting = Lookup.GetEntitiesIntersecting(beltTileRef.Value, 0f);
var intersecting = Lookup.GetLocalEntitiesIntersecting(beltTileRef.Value, 0f);

foreach (var entity in intersecting)
{
Expand Down
2 changes: 1 addition & 1 deletion Content.Shared/Blocking/BlockingSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ public bool StartBlocking(EntityUid item, BlockingComponent component, EntityUid
var playerTileRef = xform.Coordinates.GetTileRef();
if (playerTileRef != null)
{
var intersecting = _lookup.GetEntitiesIntersecting(playerTileRef.Value, 0f);
var intersecting = _lookup.GetLocalEntitiesIntersecting(playerTileRef.Value, 0f);

Check failure on line 180 in Content.Shared/Blocking/BlockingSystem.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

No overload for method 'GetLocalEntitiesIntersecting' takes 2 arguments

Check failure on line 180 in Content.Shared/Blocking/BlockingSystem.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

Cannot assign void to an implicitly-typed variable

Check failure on line 180 in Content.Shared/Blocking/BlockingSystem.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

No overload for method 'GetLocalEntitiesIntersecting' takes 2 arguments

Check failure on line 180 in Content.Shared/Blocking/BlockingSystem.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

Cannot assign void to an implicitly-typed variable

Check failure on line 180 in Content.Shared/Blocking/BlockingSystem.cs

View workflow job for this annotation

GitHub Actions / Test Packaging

No overload for method 'GetLocalEntitiesIntersecting' takes 2 arguments

Check failure on line 180 in Content.Shared/Blocking/BlockingSystem.cs

View workflow job for this annotation

GitHub Actions / Test Packaging

Cannot assign void to an implicitly-typed variable

Check failure on line 180 in Content.Shared/Blocking/BlockingSystem.cs

View workflow job for this annotation

GitHub Actions / Test Packaging

No overload for method 'GetLocalEntitiesIntersecting' takes 2 arguments

Check failure on line 180 in Content.Shared/Blocking/BlockingSystem.cs

View workflow job for this annotation

GitHub Actions / Test Packaging

Cannot assign void to an implicitly-typed variable

Check failure on line 180 in Content.Shared/Blocking/BlockingSystem.cs

View workflow job for this annotation

GitHub Actions / YAML Linter

No overload for method 'GetLocalEntitiesIntersecting' takes 2 arguments

Check failure on line 180 in Content.Shared/Blocking/BlockingSystem.cs

View workflow job for this annotation

GitHub Actions / YAML Linter

Cannot assign void to an implicitly-typed variable

Check failure on line 180 in Content.Shared/Blocking/BlockingSystem.cs

View workflow job for this annotation

GitHub Actions / YAML Linter

No overload for method 'GetLocalEntitiesIntersecting' takes 2 arguments

Check failure on line 180 in Content.Shared/Blocking/BlockingSystem.cs

View workflow job for this annotation

GitHub Actions / YAML Linter

Cannot assign void to an implicitly-typed variable

Check failure on line 180 in Content.Shared/Blocking/BlockingSystem.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

No overload for method 'GetLocalEntitiesIntersecting' takes 2 arguments

Check failure on line 180 in Content.Shared/Blocking/BlockingSystem.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

Cannot assign void to an implicitly-typed variable

Check failure on line 180 in Content.Shared/Blocking/BlockingSystem.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

No overload for method 'GetLocalEntitiesIntersecting' takes 2 arguments

Check failure on line 180 in Content.Shared/Blocking/BlockingSystem.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

Cannot assign void to an implicitly-typed variable
var mobQuery = GetEntityQuery<MobStateComponent>();
foreach (var uid in intersecting)
{
Expand Down

0 comments on commit 1f3a29c

Please sign in to comment.