Revert "Remove most usages of obsolete TransformComponent methods (#1… (#19714)

This commit is contained in:
metalgearsloth
2023-09-01 12:30:29 +10:00
committed by GitHub
parent 37222930d9
commit 4cfc578011
91 changed files with 227 additions and 315 deletions

View File

@@ -140,7 +140,7 @@ public partial class SharedBodySystem
container.Remove(organId.Value);
if (TryComp(organId, out TransformComponent? transform))
_transform.AttachToGridOrMap(organId.Value, transform);
transform.AttachToGridOrMap();
organ.Owner.RandomOffset(0.25f);
@@ -165,7 +165,7 @@ public partial class SharedBodySystem
return false;
if (TryComp(organId.Value, out TransformComponent? transform))
_transform.SetCoordinates(organId.Value, transform, dropAt);
transform.Coordinates = dropAt;
return true;
}

View File

@@ -249,7 +249,7 @@ public partial class SharedBodySystem
container.Remove(partId.Value);
if (TryComp(partId, out TransformComponent? transform))
_transform.AttachToGridOrMap(partId.Value, transform);
transform.AttachToGridOrMap();
part.Owner.RandomOffset(0.25f);
@@ -331,7 +331,7 @@ public partial class SharedBodySystem
return false;
if (TryComp(partId.Value, out TransformComponent? transform))
_transform.SetCoordinates(partId.Value, transform, dropAt);
transform.Coordinates = dropAt;
return true;
}

View File

@@ -16,7 +16,6 @@ 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()
{