Remove 700 usages of Component.Owner (#21100)

This commit is contained in:
DrSmugleaf
2023-10-19 12:34:31 -07:00
committed by GitHub
parent 5825ffb95c
commit f560f88eb5
261 changed files with 2291 additions and 2036 deletions

View File

@@ -151,7 +151,7 @@ public sealed class FollowerSystem : EntitySystem
{
followerComp = AddComp<FollowerComponent>(follower);
}
followerComp.Following = entity;
var followedComp = EnsureComp<FollowedComponent>(entity);
@@ -165,7 +165,7 @@ public sealed class FollowerSystem : EntitySystem
_physicsSystem.SetLinearVelocity(follower, Vector2.Zero);
var xform = Transform(follower);
_containerSystem.AttachParentToContainerOrGrid(xform);
_containerSystem.AttachParentToContainerOrGrid((follower, xform));
// If we didn't get to parent's container.
if (xform.ParentUid != Transform(xform.ParentUid).ParentUid)