Add click dragging for buckle (#1290)
This commit is contained in:
@@ -26,12 +26,27 @@ namespace Content.Shared.GameObjects.Components.Strap
|
||||
{
|
||||
public sealed override string Name => "Strap";
|
||||
|
||||
public virtual StrapPosition Position { get; set; }
|
||||
public sealed override uint? NetID => ContentNetIDs.STRAP;
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public enum StrapVisuals
|
||||
public abstract StrapPosition Position { get; protected set; }
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public sealed class StrapComponentState : ComponentState
|
||||
{
|
||||
public readonly StrapPosition Position;
|
||||
|
||||
public StrapComponentState(StrapPosition position) : base(ContentNetIDs.BUCKLE)
|
||||
{
|
||||
RotationAngle
|
||||
Position = position;
|
||||
}
|
||||
|
||||
public bool Buckled { get; }
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public enum StrapVisuals
|
||||
{
|
||||
RotationAngle
|
||||
}
|
||||
}
|
||||
|
||||
@@ -59,6 +59,7 @@
|
||||
public const uint BUCKLE = 1052;
|
||||
public const uint PROJECTILE = 1053;
|
||||
public const uint THROWN_ITEM = 1054;
|
||||
public const uint STRAP = 1055;
|
||||
|
||||
// Net IDs for integration tests.
|
||||
public const uint PREDICTION_TEST = 10001;
|
||||
|
||||
Reference in New Issue
Block a user