Table of Contents

Class GadgetExtensions

Namespace
Nautilus.Assets.Gadgets
Assembly
Nautilus.dll
Represents extension methods for the Gadget class.
public static class GadgetExtensions
Inheritance
GadgetExtensions
Inherited Members

Methods

CreateCreatureEgg(ICustomPrefab, int)

Makes this item have additional creature-egg-related functionality.
public static EggGadget CreateCreatureEgg(this ICustomPrefab customPrefab, int requiredAcuSize = 1)

Parameters

customPrefab ICustomPrefab
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 the large ACU.

Returns

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

CreateFabricator(ICustomPrefab, out Type)

public static FabricatorGadget CreateFabricator(this ICustomPrefab customPrefab, out CraftTree.Type treeType)

Parameters

customPrefab ICustomPrefab
treeType Type

Returns

FabricatorGadget

CreateFragment(ICustomPrefab, TechType, float, int, string, bool, bool)

public static ScanningGadget CreateFragment(this ICustomPrefab customPrefab, TechType blueprint, float scanTime, int fragmentsToScan = 1, string encyKey = null, bool destroyAfterScan = true, bool isFragment = true)

Parameters

customPrefab ICustomPrefab
blueprint TechType
scanTime float
fragmentsToScan int
encyKey string
destroyAfterScan bool
isFragment bool

Returns

ScanningGadget

SetEquipment(ICustomPrefab, EquipmentType)

public static EquipmentGadget SetEquipment(this ICustomPrefab customPrefab, EquipmentType equipmentType)

Parameters

customPrefab ICustomPrefab
equipmentType EquipmentType

Returns

EquipmentGadget

SetPdaGroupCategory(ICustomPrefab, TechGroup, TechCategory)

public static ScanningGadget SetPdaGroupCategory(this ICustomPrefab customPrefab, TechGroup group, TechCategory category)

Parameters

customPrefab ICustomPrefab
group TechGroup
category TechCategory

Returns

ScanningGadget

SetPdaGroupCategoryAfter(ICustomPrefab, TechGroup, TechCategory, TechType)

public static ScanningGadget SetPdaGroupCategoryAfter(this ICustomPrefab customPrefab, TechGroup group, TechCategory category, TechType target)

Parameters

customPrefab ICustomPrefab
group TechGroup
category TechCategory
target TechType

Returns

ScanningGadget

SetPdaGroupCategoryBefore(ICustomPrefab, TechGroup, TechCategory, TechType)

public static ScanningGadget SetPdaGroupCategoryBefore(this ICustomPrefab customPrefab, TechGroup group, TechCategory category, TechType target)

Parameters

customPrefab ICustomPrefab
group TechGroup
category TechCategory
target TechType

Returns

ScanningGadget

SetRecipe(ICustomPrefab, RecipeData)

Adds recipe to this custom prefab.
public static CraftingGadget SetRecipe(this ICustomPrefab customPrefab, RecipeData recipeData)

Parameters

customPrefab ICustomPrefab
recipeData RecipeData
The recipe to add.

Returns

CraftingGadget
A reference to the created CraftingGadget to continue the recipe settings on.

SetRecipeFromJson(ICustomPrefab, string)

Adds recipe from a json file to this custom prefab.
public static CraftingGadget SetRecipeFromJson(this ICustomPrefab customPrefab, string filePath)

Parameters

customPrefab ICustomPrefab
filePath string
The path to the recipe json file. A string with valid recipe data json is also acceptable.

Returns

CraftingGadget
A reference to the created CraftingGadget to continue the recipe settings on.

SetSpawns(ICustomPrefab, params BiomeData[])

public static ICustomPrefab SetSpawns(this ICustomPrefab customPrefab, params LootDistributionData.BiomeData[] biomesToSpawnIn)

Parameters

customPrefab ICustomPrefab
biomesToSpawnIn BiomeData[]

Returns

ICustomPrefab

SetSpawns(ICustomPrefab, params SpawnLocation[])

Adds coordinated spawns for this custom prefab.
public static ICustomPrefab SetSpawns(this ICustomPrefab customPrefab, params SpawnLocation[] spawnLocations)

Parameters

customPrefab ICustomPrefab
spawnLocations SpawnLocation[]
The spawn locations to spawn in.

Returns

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

SetSpawns(ICustomPrefab, WorldEntityInfo, params BiomeData[])

public static ICustomPrefab SetSpawns(this ICustomPrefab customPrefab, WorldEntityInfo entityInfo, params LootDistributionData.BiomeData[] biomesToSpawnIn)

Parameters

customPrefab ICustomPrefab
entityInfo WorldEntityInfo
biomesToSpawnIn BiomeData[]

Returns

ICustomPrefab

SetUnlock(ICustomPrefab, TechType, int)

public static ScanningGadget SetUnlock(this ICustomPrefab customPrefab, TechType requiredForUnlock, int fragmentsToScan = 1)

Parameters

customPrefab ICustomPrefab
requiredForUnlock TechType
fragmentsToScan int

Returns

ScanningGadget

SetVehicleUpgradeModule(ICustomPrefab, EquipmentType, QuickSlotType)

public static UpgradeModuleGadget SetVehicleUpgradeModule(this ICustomPrefab customPrefab, EquipmentType equipmentType = 9, QuickSlotType slotType = 1)

Parameters

customPrefab ICustomPrefab
equipmentType EquipmentType
slotType QuickSlotType

Returns

UpgradeModuleGadget