2021-06-28 16:20:57 +02:00
|
|
|
using Content.Shared.Sound;
|
2021-08-20 09:51:48 +02:00
|
|
|
using Robust.Shared.Analyzers;
|
2019-07-18 23:33:02 +02:00
|
|
|
using Robust.Shared.GameObjects;
|
2021-03-05 01:08:38 +01:00
|
|
|
using Robust.Shared.Serialization.Manager.Attributes;
|
2019-07-18 23:33:02 +02:00
|
|
|
using Robust.Shared.ViewVariables;
|
|
|
|
|
|
2021-06-09 22:19:39 +02:00
|
|
|
namespace Content.Server.Dice
|
2019-07-18 23:33:02 +02:00
|
|
|
{
|
2021-08-20 09:51:48 +02:00
|
|
|
[RegisterComponent, Friend(typeof(DiceSystem))]
|
2022-02-16 00:23:23 -07:00
|
|
|
public sealed class DiceComponent : Component
|
2019-07-18 23:33:02 +02:00
|
|
|
{
|
|
|
|
|
[ViewVariables]
|
2021-06-28 16:20:57 +02:00
|
|
|
[DataField("sound")]
|
2021-08-20 09:51:48 +02:00
|
|
|
public SoundSpecifier Sound { get; } = new SoundCollectionSpecifier("Dice");
|
2021-06-28 16:20:57 +02:00
|
|
|
|
2019-07-18 23:33:02 +02:00
|
|
|
[ViewVariables]
|
2021-06-28 16:20:57 +02:00
|
|
|
[DataField("step")]
|
|
|
|
|
public int Step { get; } = 1;
|
|
|
|
|
|
2019-07-18 23:33:02 +02:00
|
|
|
[ViewVariables]
|
2021-03-05 01:08:38 +01:00
|
|
|
[DataField("sides")]
|
2021-08-20 09:51:48 +02:00
|
|
|
public int Sides { get; } = 20;
|
2019-07-18 23:33:02 +02:00
|
|
|
|
2021-03-05 01:08:38 +01:00
|
|
|
[ViewVariables]
|
2021-08-20 09:51:48 +02:00
|
|
|
public int CurrentSide { get; set; } = 20;
|
2019-07-18 23:33:02 +02:00
|
|
|
}
|
|
|
|
|
}
|