2022-05-29 02:29:10 -04:00
|
|
|
|
using Robust.Shared.GameStates;
|
|
|
|
|
|
using Robust.Shared.Serialization;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Content.Shared.Physics;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Use this to allow a specific UID to prevent collides
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[RegisterComponent, NetworkedComponent]
|
2023-08-22 18:14:33 -07:00
|
|
|
|
public sealed partial class PreventCollideComponent : Component
|
2022-05-29 02:29:10 -04:00
|
|
|
|
{
|
|
|
|
|
|
public EntityUid Uid;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[Serializable, NetSerializable]
|
|
|
|
|
|
public sealed class PreventCollideComponentState : ComponentState
|
|
|
|
|
|
{
|
2023-09-11 09:42:41 +10:00
|
|
|
|
public NetEntity Uid;
|
2022-05-29 02:29:10 -04:00
|
|
|
|
|
2023-09-11 09:42:41 +10:00
|
|
|
|
public PreventCollideComponentState(NetEntity netEntity)
|
2022-05-29 02:29:10 -04:00
|
|
|
|
{
|
2023-09-11 09:42:41 +10:00
|
|
|
|
Uid = netEntity;
|
2022-05-29 02:29:10 -04:00
|
|
|
|
}
|
|
|
|
|
|
}
|