Add prototype serialization tests. (#18458)
Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
This commit is contained in:
22
Content.Shared/Nutrition/Flavor.cs
Normal file
22
Content.Shared/Nutrition/Flavor.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using Robust.Shared.Prototypes;
|
||||
|
||||
namespace Content.Shared.Nutrition;
|
||||
|
||||
[Prototype("flavor")]
|
||||
public sealed class FlavorPrototype : IPrototype
|
||||
{
|
||||
[IdDataField]
|
||||
public string ID { get; } = default!;
|
||||
|
||||
[DataField("flavorType")]
|
||||
public FlavorType FlavorType { get; } = FlavorType.Base;
|
||||
|
||||
[DataField("description")]
|
||||
public string FlavorDescription { get; } = default!;
|
||||
}
|
||||
|
||||
public enum FlavorType : byte
|
||||
{
|
||||
Base,
|
||||
Complex
|
||||
}
|
||||
Reference in New Issue
Block a user