Simple Magic Spellbook System (#7823)
Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
This commit is contained in:
24
Content.Shared/Physics/PreventCollideComponent.cs
Normal file
24
Content.Shared/Physics/PreventCollideComponent.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
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]
|
||||
public sealed class PreventCollideComponent : Component
|
||||
{
|
||||
public EntityUid Uid;
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public sealed class PreventCollideComponentState : ComponentState
|
||||
{
|
||||
public EntityUid Uid;
|
||||
|
||||
public PreventCollideComponentState(PreventCollideComponent component)
|
||||
{
|
||||
Uid = component.Uid;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user