json generator alternator and vibrator (#718)
* json generator alternator and vibrator * каким хуем ты не закоммитился уебан
This commit is contained in:
20
Content.Server/_White/GuideGenerator/ReagentEffectsEntry.cs
Normal file
20
Content.Server/_White/GuideGenerator/ReagentEffectsEntry.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using Content.Shared.FixedPoint;
|
||||
using System.Linq;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace Content.Server._White.GuideGenerator;
|
||||
public sealed class ReagentEffectsEntry
|
||||
{
|
||||
[JsonPropertyName("rate")]
|
||||
public FixedPoint2 MetabolismRate { get; } = FixedPoint2.New(0.5f);
|
||||
|
||||
[JsonPropertyName("effects")]
|
||||
public List<ReagentEffectEntry> Effects { get; } = new();
|
||||
|
||||
public ReagentEffectsEntry(Shared.Chemistry.Reagent.ReagentEffectsEntry proto)
|
||||
{
|
||||
MetabolismRate = proto.MetabolismRate;
|
||||
Effects = proto.Effects.Select(x => new ReagentEffectEntry(x)).ToList();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user