Minor comp message removal (#6733)
This commit is contained in:
@@ -60,65 +60,4 @@ namespace Content.Shared.Buckle.Components
|
||||
RotationAngle,
|
||||
BuckledState
|
||||
}
|
||||
|
||||
// TODO : Convert this to an Entity Message. Careful, it will Break ShuttleControllerComponent (only place where it's used)
|
||||
[Serializable, NetSerializable]
|
||||
#pragma warning disable 618
|
||||
public abstract class StrapChangeMessage : ComponentMessage
|
||||
#pragma warning restore 618
|
||||
{
|
||||
/// <summary>
|
||||
/// Constructs a new instance of <see cref="StrapChangeMessage"/>
|
||||
/// </summary>
|
||||
/// <param name="entity">The entity that had its buckling status changed</param>
|
||||
/// <param name="strap">The strap that the entity was buckled to or unbuckled from</param>
|
||||
/// <param name="buckled">True if the entity was buckled, false otherwise</param>
|
||||
protected StrapChangeMessage(EntityUid entity, EntityUid strap, bool buckled)
|
||||
{
|
||||
Entity = entity;
|
||||
Strap = strap;
|
||||
Buckled = buckled;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The entity that had its buckling status changed
|
||||
/// </summary>
|
||||
public EntityUid Entity { get; }
|
||||
|
||||
/// <summary>
|
||||
/// The strap that the entity was buckled to or unbuckled from
|
||||
/// </summary>
|
||||
public EntityUid Strap { get; }
|
||||
|
||||
/// <summary>
|
||||
/// True if the entity was buckled, false otherwise.
|
||||
/// </summary>
|
||||
public bool Buckled { get; }
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public class StrapMessage : StrapChangeMessage
|
||||
{
|
||||
/// <summary>
|
||||
/// Constructs a new instance of <see cref="StrapMessage"/>
|
||||
/// </summary>
|
||||
/// <param name="entity">The entity that had its buckling status changed</param>
|
||||
/// <param name="strap">The strap that the entity was buckled to or unbuckled from</param>
|
||||
public StrapMessage(EntityUid entity, EntityUid strap) : base(entity, strap, true)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public class UnStrapMessage : StrapChangeMessage
|
||||
{
|
||||
/// <summary>
|
||||
/// Constructs a new instance of <see cref="UnStrapMessage"/>
|
||||
/// </summary>
|
||||
/// <param name="entity">The entity that had its buckling status changed</param>
|
||||
/// <param name="strap">The strap that the entity was buckled to or unbuckled from</param>
|
||||
public UnStrapMessage(EntityUid entity, EntityUid strap) : base(entity, strap, false)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user