Table of Contents

Class EggGadget

Namespace
Nautilus.Assets.Gadgets
Assembly
Nautilus.dll
Represents a creature egg gadget.
public class EggGadget : Gadget
Inheritance
EggGadget
Inherited Members
Extension Methods

Constructors

EggGadget(ICustomPrefab, int)

Constructs a Creature egg gadget instance.
public EggGadget(ICustomPrefab prefab, int requiredAcuSize = 1)

Parameters

prefab ICustomPrefab
The custom prefab to operate on.
requiredAcuSize int
The total amount of ACU floors required for the egg to be dropped in the ACU. This value is shared between the normal and large ACU.

Properties

AcidImmune

makes the egg immune to the Lost River's Acidic Brine.
public bool AcidImmune { get; set; }

Property Value

bool

RequiredAcuSize

The total amount of normal ACU floors required for the egg to be dropped in the ACU. If this is set to 0, the egg will not be accepted in the normal ACU. Defaulted to 1.
public int RequiredAcuSize { get; set; }

Property Value

int

RequiredLargeAcuSize

The total amount of Large ACU floors required for the egg to be dropped in. If this is set to 0, the egg will not be accepted in the large ACU. Defaulted to 1.
public int RequiredLargeAcuSize { get; set; }

Property Value

int

Methods

Build()

Where the data actually gets registered to the game.
This is called after prefab register and PostRegisters in Register().
protected override void Build()

SetAcidImmune(bool)

makes the egg immune to the Lost River's Acidic Brine.
public EggGadget SetAcidImmune(bool isAcidImmune)

Parameters

isAcidImmune bool
Should this item be acid immune?

Returns

EggGadget
A reference to this instance after the operation has completed.

WithRequiredAcuSize(int)

The total amount of normal ACU floors required for the egg to be dropped in the ACU.
public EggGadget WithRequiredAcuSize(int requiredAcuSize)

Parameters

requiredAcuSize int
The ACU stacks value. If this is set to 0, the egg will not be accepted in the normal ACU.

Returns

EggGadget
A reference to this instance after the operation has completed.

WithRequiredLargeAcuSize(int)

The total amount of Large ACU floors required for the egg to be dropped in.
public EggGadget WithRequiredLargeAcuSize(int requiredLargeAcuSize)

Parameters

requiredLargeAcuSize int
The large ACU stacks value. If this is set to 0, the egg will not be accepted in the large ACU.

Returns

EggGadget
A reference to this instance after the operation has completed.