18 lines
649 B
C#
18 lines
649 B
C#
using NitroxClient.GameLogic.Spawning.Metadata.Extractor.Abstract;
|
|
using NitroxModel.DataStructures.GameLogic.Entities.Metadata;
|
|
|
|
namespace NitroxClient.GameLogic.Spawning.Metadata.Extractor;
|
|
|
|
public class WaterParkCreatureMetadataExtractor : EntityMetadataExtractor<WaterParkCreature, WaterParkCreatureMetadata>
|
|
{
|
|
public override WaterParkCreatureMetadata Extract(WaterParkCreature entity)
|
|
{
|
|
// We don't need to save metadata for fishes with default values
|
|
if (entity.age == -1)
|
|
{
|
|
return null;
|
|
}
|
|
return new(entity.age, entity.matureTime, entity.timeNextBreed, entity.bornInside);
|
|
}
|
|
}
|