Public API changes to IPhysBody and MoverController.
This commit is contained in:
@@ -268,7 +268,7 @@ namespace Content.Shared.GameObjects.Components.Movement
|
||||
bool ICollideSpecial.PreventCollide(IPhysBody collidedWith)
|
||||
{
|
||||
// Don't collide with other mobs
|
||||
return collidedWith.Owner.HasComponent<SharedSpeciesComponent>();
|
||||
return collidedWith.Entity.HasComponent<SharedSpeciesComponent>();
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
|
||||
@@ -39,7 +39,7 @@ namespace Content.Shared.GameObjects.Components.Projectiles
|
||||
|
||||
public bool PreventCollide(IPhysBody collidedwith)
|
||||
{
|
||||
return IgnoreShooter && collidedwith.Owner.Uid == Shooter;
|
||||
return IgnoreShooter && collidedwith.Entity.Uid == Shooter;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace Content.Shared.Physics
|
||||
public class MoverController : VirtualController
|
||||
{
|
||||
private Vector2 _velocity;
|
||||
private IPhysicsComponent _component = null;
|
||||
private ICollidableComponent _component = null;
|
||||
|
||||
public Vector2 Velocity
|
||||
{
|
||||
@@ -18,7 +18,7 @@ namespace Content.Shared.Physics
|
||||
set => _velocity = value;
|
||||
}
|
||||
|
||||
public override IPhysicsComponent ControlledComponent
|
||||
public override ICollidableComponent? ControlledComponent
|
||||
{
|
||||
set => _component = value;
|
||||
}
|
||||
|
||||
Submodule RobustToolbox updated: bbbaef5da4...8475c1ae4b
Reference in New Issue
Block a user