Update trivial components to use auto comp states (#20539)
This commit is contained in:
@@ -1,24 +1,14 @@
|
||||
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]
|
||||
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
|
||||
public sealed partial class PreventCollideComponent : Component
|
||||
{
|
||||
[AutoNetworkedField]
|
||||
public EntityUid Uid;
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public sealed class PreventCollideComponentState : ComponentState
|
||||
{
|
||||
public NetEntity Uid;
|
||||
|
||||
public PreventCollideComponentState(NetEntity netEntity)
|
||||
{
|
||||
Uid = netEntity;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user