28 lines
722 B
C#
28 lines
722 B
C#
using Content.Shared.Sound;
|
|
using Robust.Shared.Analyzers;
|
|
using Robust.Shared.GameObjects;
|
|
using Robust.Shared.Serialization.Manager.Attributes;
|
|
using Robust.Shared.ViewVariables;
|
|
|
|
namespace Content.Server.Dice
|
|
{
|
|
[RegisterComponent, Friend(typeof(DiceSystem))]
|
|
public class DiceComponent : Component
|
|
{
|
|
[ViewVariables]
|
|
[DataField("sound")]
|
|
public SoundSpecifier Sound { get; } = new SoundCollectionSpecifier("Dice");
|
|
|
|
[ViewVariables]
|
|
[DataField("step")]
|
|
public int Step { get; } = 1;
|
|
|
|
[ViewVariables]
|
|
[DataField("sides")]
|
|
public int Sides { get; } = 20;
|
|
|
|
[ViewVariables]
|
|
public int CurrentSide { get; set; } = 20;
|
|
}
|
|
}
|