Refactors throw events, makes cream pies ECS (#4500)
This commit is contained in:
committed by
GitHub
parent
140682f92b
commit
ea4ce1c6fc
27
Content.Shared/Nutrition/Components/CreamPieComponent.cs
Normal file
27
Content.Shared/Nutrition/Components/CreamPieComponent.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using Content.Shared.Nutrition.EntitySystems;
|
||||
using Content.Shared.Sound;
|
||||
using Robust.Shared.Analyzers;
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.Serialization.Manager.Attributes;
|
||||
using Robust.Shared.ViewVariables;
|
||||
|
||||
namespace Content.Shared.Nutrition.Components
|
||||
{
|
||||
[Friend(typeof(SharedCreamPieSystem))]
|
||||
[RegisterComponent]
|
||||
public class CreamPieComponent : Component
|
||||
{
|
||||
public override string Name => "CreamPie";
|
||||
|
||||
[ViewVariables]
|
||||
[DataField("paralyzeTime")]
|
||||
public float ParalyzeTime { get; } = 1f;
|
||||
|
||||
[ViewVariables]
|
||||
[DataField("sound")]
|
||||
public SoundSpecifier Sound { get; } = new SoundCollectionSpecifier("desecration");
|
||||
|
||||
[ViewVariables]
|
||||
public bool Splatted { get; set; } = false;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user