Exemplo n.º 1
0
 public KnockupEvent(Guid creatureID, ReadOnlyPregnancyStore birthSource, StandardSpawnData originalSpawnData)
 {
     this.creatureID         = creatureID;
     this.birthSource        = birthSource ?? throw new ArgumentNullException(nameof(birthSource));
     originalSpawnSource     = originalSpawnData ?? throw new ArgumentNullException(nameof(originalSpawnData));
     this.currentSpawnSource = birthSource.spawnType;
 }
Exemplo n.º 2
0
 public BirthEvent(Guid creatureID, ReadOnlyPregnancyStore source, StandardSpawnData spawn, uint totalBirthCount)
 {
     this.creatureID      = creatureID;
     birthSource          = source;
     spawnData            = spawn;
     this.totalBirthCount = totalBirthCount;
 }
Exemplo n.º 3
0
 public ReadOnlyPregnancyStore(PregnancyStore source) : base(source?.creatureID ?? throw new ArgumentNullException(nameof(source)))
 {
     spawnType           = source.spawnType.AsReadOnlyData();
     hoursTilBirth       = source.birthCountdown;
     hasDiapause         = source.hasDiapause;
     pregnancyMultiplier = source.pregnancyMultiplier;
     eggSizeKnown        = source.eggSizeKnown;
     eggSizeLarge        = source.eggsLarge;
     isPregnant          = source.isPregnant;
     totalBirthCount     = source.totalBirthCount;
 }