Remove most usages of obsolete TransformComponent methods (#19571)
This commit is contained in:
@@ -140,7 +140,7 @@ public partial class SharedBodySystem
|
||||
container.Remove(organId.Value);
|
||||
|
||||
if (TryComp(organId, out TransformComponent? transform))
|
||||
transform.AttachToGridOrMap();
|
||||
_transform.AttachToGridOrMap(organId.Value, transform);
|
||||
|
||||
organ.Owner.RandomOffset(0.25f);
|
||||
|
||||
@@ -165,7 +165,7 @@ public partial class SharedBodySystem
|
||||
return false;
|
||||
|
||||
if (TryComp(organId.Value, out TransformComponent? transform))
|
||||
transform.Coordinates = dropAt;
|
||||
_transform.SetCoordinates(organId.Value, transform, dropAt);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -249,7 +249,7 @@ public partial class SharedBodySystem
|
||||
container.Remove(partId.Value);
|
||||
|
||||
if (TryComp(partId, out TransformComponent? transform))
|
||||
transform.AttachToGridOrMap();
|
||||
_transform.AttachToGridOrMap(partId.Value, transform);
|
||||
|
||||
part.Owner.RandomOffset(0.25f);
|
||||
|
||||
@@ -331,7 +331,7 @@ public partial class SharedBodySystem
|
||||
return false;
|
||||
|
||||
if (TryComp(partId.Value, out TransformComponent? transform))
|
||||
transform.Coordinates = dropAt;
|
||||
_transform.SetCoordinates(partId.Value, transform, dropAt);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -16,6 +16,7 @@ public abstract partial class SharedBodySystem : EntitySystem
|
||||
[Dependency] protected readonly DamageableSystem Damageable = default!;
|
||||
[Dependency] protected readonly StandingStateSystem Standing = default!;
|
||||
[Dependency] protected readonly MovementSpeedModifierSystem Movement = default!;
|
||||
[Dependency] private readonly SharedTransformSystem _transform = default!;
|
||||
|
||||
public override void Initialize()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user