@@ -11,21 +11,27 @@ public sealed partial class SliceableFoodComponent : Component
|
||||
/// Prototype to spawn after slicing.
|
||||
/// If null then it can't be sliced.
|
||||
/// </summary>
|
||||
[DataField, ViewVariables(VVAccess.ReadWrite)]
|
||||
[DataField]
|
||||
public EntProtoId? Slice;
|
||||
|
||||
[DataField, ViewVariables(VVAccess.ReadWrite)]
|
||||
[DataField]
|
||||
public SoundSpecifier Sound = new SoundPathSpecifier("/Audio/Items/Culinary/chop.ogg");
|
||||
|
||||
/// <summary>
|
||||
/// Number of slices the food starts with.
|
||||
/// </summary>
|
||||
[DataField("count"), ViewVariables(VVAccess.ReadWrite)]
|
||||
[DataField("count")]
|
||||
public ushort TotalCount = 5;
|
||||
|
||||
/// <summary>
|
||||
/// Number of slices left.
|
||||
/// how long it takes for this food to be sliced
|
||||
/// </summary>
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
public ushort Count;
|
||||
[DataField]
|
||||
public float SliceTime = 1f;
|
||||
|
||||
/// <summary>
|
||||
/// all the pieces will be shifted in random directions.
|
||||
/// </summary>
|
||||
[DataField]
|
||||
public float SpawnOffset = 0.5f;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user