Replace all ITransformComponent by TransformComponent
This commit is contained in:
@@ -70,7 +70,7 @@ namespace Content.Server.Atmos.EntitySystems
|
||||
|
||||
_timer -= UpdateTimer;
|
||||
|
||||
foreach (var (barotrauma, damageable, transform) in EntityManager.EntityQuery<BarotraumaComponent, DamageableComponent, ITransformComponent>(false))
|
||||
foreach (var (barotrauma, damageable, transform) in EntityManager.EntityQuery<BarotraumaComponent, DamageableComponent, TransformComponent>(false))
|
||||
{
|
||||
var totalDamage = FixedPoint2.Zero;
|
||||
foreach (var (barotraumaDamageType, _) in barotrauma.Damage.DamageDict)
|
||||
|
||||
@@ -187,7 +187,7 @@ namespace Content.Server.Atmos.EntitySystems
|
||||
_timer -= UpdateTime;
|
||||
|
||||
// TODO: This needs cleanup to take off the crust from TemperatureComponent and shit.
|
||||
foreach (var (flammable, physics, transform) in EntityManager.EntityQuery<FlammableComponent, IPhysBody, ITransformComponent>())
|
||||
foreach (var (flammable, physics, transform) in EntityManager.EntityQuery<FlammableComponent, IPhysBody, TransformComponent>())
|
||||
{
|
||||
var uid = flammable.Owner.Uid;
|
||||
|
||||
|
||||
@@ -51,7 +51,7 @@ namespace Content.Server.Atmos.Piping.Unary.EntitySystems
|
||||
/// <summary>
|
||||
/// Completely dumps the content of the canister into the world.
|
||||
/// </summary>
|
||||
public void PurgeContents(EntityUid uid, GasCanisterComponent? canister = null, ITransformComponent? transform = null)
|
||||
public void PurgeContents(EntityUid uid, GasCanisterComponent? canister = null, TransformComponent? transform = null)
|
||||
{
|
||||
if (!Resolve(uid, ref canister, ref transform)) return;
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ namespace Content.Server.Atmos.Piping.Unary.EntitySystems
|
||||
|
||||
private void OnPortableAnchorAttempt(EntityUid uid, GasPortableComponent component, AnchorAttemptEvent args)
|
||||
{
|
||||
if (!EntityManager.TryGetComponent(uid, out ITransformComponent? transform))
|
||||
if (!EntityManager.TryGetComponent(uid, out TransformComponent? transform))
|
||||
return;
|
||||
|
||||
// If we can't find any ports, cancel the anchoring.
|
||||
|
||||
Reference in New Issue
Block a user