mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-09-16 07:12:27 +02:00
* Add joint support for CollisionWakeComponent * Less bad * Fix heresy
38 lines
904 B
C#
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;
|
|
}
|
|
}
|
|
}
|