Files
metalgearslothandGitHub 71c2993d20 Add joint support for CollisionWakeComponent (#1794)
* Add joint support for CollisionWakeComponent

* Less bad

* Fix heresy
2021-06-05 18:16:06 +10:00

38 lines
904 B
C#

using Robust.Shared.GameObjects;
using Robust.Shared.Physics.Dynamics.Joints;
namespace Robust.Shared.Physics
{
public sealed class JointAddedEvent : EntityEventArgs
{
public IPhysBody OurBody { get; }
public IPhysBody OtherBody { get; }
public Joint Joint { get; }
public JointAddedEvent(Joint joint, IPhysBody ourBody, IPhysBody otherBody)
{
Joint = joint;
OurBody = ourBody;
OtherBody = otherBody;
}
}
public sealed class JointRemovedEvent : EntityEventArgs
{
public IPhysBody OurBody { get; }
public IPhysBody OtherBody { get; }
public Joint Joint { get; }
public JointRemovedEvent(Joint joint, IPhysBody ourBody, IPhysBody otherBody)
{
Joint = joint;
OurBody = ourBody;
OtherBody = otherBody;
}
}
}