Files
Nitrox/NitroxClient/GameLogic/Spawning/Metadata/Extractor/EatableMetadataExtractor.cs
2025-07-06 00:23:46 +02:00

17 lines
481 B
C#

using NitroxClient.GameLogic.Spawning.Metadata.Extractor.Abstract;
using NitroxModel.DataStructures.GameLogic.Entities.Metadata;
namespace NitroxClient.GameLogic.Spawning.Metadata.Extractor;
public class EatableMetadataExtractor : EntityMetadataExtractor<Eatable, EatableMetadata>
{
public override EatableMetadata Extract(Eatable eatable)
{
if (eatable.decomposes)
{
return new(eatable.timeDecayStart);
}
return null;
}
}