2021-11-30 13:20:13 +03:00
|
|
|
using Content.Server.Nutrition.EntitySystems;
|
2021-07-10 17:35:33 +02:00
|
|
|
using Content.Shared.Sound;
|
2021-11-30 13:20:13 +03:00
|
|
|
using Robust.Shared.Analyzers;
|
2021-03-05 01:08:38 +01:00
|
|
|
using Robust.Shared.GameObjects;
|
|
|
|
|
using Robust.Shared.Serialization.Manager.Attributes;
|
|
|
|
|
using Robust.Shared.ViewVariables;
|
2021-01-06 18:48:08 -07:00
|
|
|
|
2021-06-09 22:19:39 +02:00
|
|
|
namespace Content.Server.Nutrition.Components
|
2021-01-06 18:48:08 -07:00
|
|
|
{
|
2021-11-30 13:20:13 +03:00
|
|
|
[RegisterComponent, Friend(typeof(SliceableFoodSystem))]
|
2022-02-16 00:23:23 -07:00
|
|
|
internal sealed class SliceableFoodComponent : Component
|
2021-01-06 18:48:08 -07:00
|
|
|
{
|
2021-07-31 19:52:33 +02:00
|
|
|
[DataField("slice")]
|
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
2021-11-30 13:20:13 +03:00
|
|
|
public string Slice = string.Empty;
|
2021-01-06 18:48:08 -07:00
|
|
|
|
2021-07-31 19:52:33 +02:00
|
|
|
[DataField("sound")]
|
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
2021-11-30 13:20:13 +03:00
|
|
|
public SoundSpecifier Sound = new SoundPathSpecifier("/Audio/Items/Culinary/chop.ogg");
|
2021-01-06 18:48:08 -07:00
|
|
|
|
2021-07-31 19:52:33 +02:00
|
|
|
[DataField("count")]
|
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
2021-11-30 13:20:13 +03:00
|
|
|
public ushort TotalCount = 5;
|
2021-03-05 01:08:38 +01:00
|
|
|
|
2021-09-06 15:49:44 +02:00
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
|
|
|
public ushort Count;
|
2021-01-06 18:48:08 -07:00
|
|
|
}
|
|
|
|
|
}
|