first commit

This commit is contained in:
2025-07-06 00:23:46 +02:00
commit 38f50c8819
1788 changed files with 112878 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
using NitroxClient.GameLogic.Spawning.Metadata.Extractor.Abstract;
using NitroxModel.DataStructures.GameLogic.Entities.Metadata;
namespace NitroxClient.GameLogic.Spawning.Metadata.Extractor;
public class EggMetadataExtractor : EntityMetadataExtractor<CreatureEgg, EggMetadata>
{
public override EggMetadata Extract(CreatureEgg creatureEgg)
{
// If the egg is not in a water park (when being picked up or dropped outside of one),
// we only need the exact progress value because progress only increases while inside a water park
if (Items.PickingUpObject == creatureEgg.gameObject || !creatureEgg.insideWaterPark)
{
return new(-1f, creatureEgg.progress);
}
return new(creatureEgg.timeStartHatching, creatureEgg.progress);
}
}