17 lines
481 B
C#
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;
|
|
}
|
|
}
|