Add prototype serialization tests. (#18458)

Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
This commit is contained in:
Leon Friedrich
2023-08-06 14:47:45 +12:00
committed by GitHub
parent b97be440dd
commit 28a5e32f5e
18 changed files with 138 additions and 53 deletions

View 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
}