mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-09-15 14:52:35 +02:00
* Remove IStartCollide Needs several content PRs to be merged as well. * Feex
41 lines
934 B
C#
41 lines
934 B
C#
using System;
|
|
using Robust.Shared.Physics;
|
|
using Robust.Shared.Physics.Dynamics;
|
|
using Robust.Shared.Serialization;
|
|
|
|
namespace Robust.Shared.GameObjects
|
|
{
|
|
[Serializable, NetSerializable]
|
|
public enum BodyStatus: byte
|
|
{
|
|
OnGround,
|
|
InAir
|
|
}
|
|
|
|
/// <summary>
|
|
/// Sent whenever a <see cref="IPhysBody"/> is changed.
|
|
/// </summary>
|
|
public sealed class PhysicsUpdateMessage : EntityEventArgs
|
|
{
|
|
public PhysicsComponent Component { get; }
|
|
|
|
public PhysicsUpdateMessage(PhysicsComponent component)
|
|
{
|
|
Component = component;
|
|
}
|
|
}
|
|
|
|
public sealed class FixtureUpdateMessage : EntityEventArgs
|
|
{
|
|
public PhysicsComponent Body { get; }
|
|
|
|
public Fixture Fixture { get; }
|
|
|
|
public FixtureUpdateMessage(PhysicsComponent body, Fixture fixture)
|
|
{
|
|
Body = body;
|
|
Fixture = fixture;
|
|
}
|
|
}
|
|
}
|