|
int | GetMaxStackSize (Inventory inventory) |
|
| ItemPrefab (ContentXElement element, ItemFile file) |
|
CommonnessInfo? | GetCommonnessInfo (Level level) |
|
float | GetTreatmentSuitability (Identifier treatmentIdentifier) |
|
PriceInfo | GetPriceInfo (Location.StoreInfo store) |
|
bool | CanBeBoughtFrom (Location.StoreInfo store, out PriceInfo priceInfo) |
|
bool | CanBeBoughtFrom (Location location) |
|
int? | GetMinPrice () |
|
ImmutableDictionary< Identifier, PriceInfo > | GetBuyPricesUnder (int maxCost=0) |
|
ImmutableDictionary< Identifier, PriceInfo > | GetSellPricesOver (int minCost=0, bool sellingImportant=true) |
|
bool | IsContainerPreferred (Item item, ItemContainer targetContainer, out bool isPreferencesDefined, out bool isSecondary, bool requireConditionRequirement=false, bool checkTransferConditions=false) |
|
bool | IsContainerPreferred (Item item, Identifier[] identifiersOrTags, out bool isPreferencesDefined, out bool isSecondary) |
|
override void | Dispose () |
|
void | InheritFrom (ItemPrefab parent) |
|
ContentPackage | GetParentModPackageOrThisPackage () |
| If the base prefab this one is a variant of is defined in a non-vanilla package, returns that non-vanilla package. Otherwise returns the package of this prefab. Can be useful for logging errors that may have been caused by a mod overriding the base item.
|
|
override string | ToString () |
|
| MapEntityPrefab (ContentXElement element, ContentFile file) |
|
string | GetItemNameTextId () |
|
string | GetHullNameTextId () |
|
IEnumerable< Identifier > | GetAllowedUpgrades () |
|
bool | HasSubCategory (string subcategory) |
|
bool | NameMatches (string name, StringComparison comparisonType) |
| Check if the name or any of the aliases of this prefab match the given name.
|
|
bool | NameMatches (IEnumerable< string > allowedNames, StringComparison comparisonType) |
|
bool | IsLinkAllowed (MapEntityPrefab target) |
|
| Prefab (ContentFile file, Identifier identifier) |
|
| Prefab (ContentFile file, ContentXElement element) |
|
void | Dispose () |
|
void | InheritFrom (T parent) |
|
|
Vector2 | Size [get] |
|
PriceInfo | DefaultPrice [get] |
|
bool | CanBeBought [get] |
|
bool | CanBeSold [get] |
| Any item with a Price element in the definition can be sold everywhere.
|
|
ImmutableArray< Rectangle > | Triggers [get] |
| Defines areas where the item can be interacted with. If RequireBodyInsideTrigger is set to true, the character has to be within the trigger to interact. If it's set to false, having the cursor within the trigger is enough.
|
|
bool | IsOverride [get] |
| Is this prefab overriding a prefab in another content package.
|
|
ContentXElement | ConfigElement [get] |
|
ImmutableArray< DeconstructItem > | DeconstructItems [get] |
|
ImmutableDictionary< uint, FabricationRecipe > | FabricationRecipes [get] |
|
float | DeconstructTime [get] |
|
bool | AllowDeconstruct [get] |
|
ImmutableArray< PreferredContainer > | PreferredContainers [get] |
|
ImmutableArray< SkillRequirementHint > | SkillRequirementHints [get] |
|
SwappableItem | SwappableItem [get] |
|
ImmutableDictionary< Identifier, FixedQuantityResourceInfo > | LevelQuantity [get] |
|
override bool | CanSpriteFlipX [get] |
|
override bool | CanSpriteFlipY [get] |
|
bool? | AllowAsExtraCargo [get] |
| Can the item be chosen as extra cargo in multiplayer. If not set, the item is available if it can be bought from outposts in the campaign.
|
|
bool | RandomDeconstructionOutput [get] |
|
int | RandomDeconstructionOutputAmount [get] |
|
override Sprite | Sprite [get] |
|
override string | OriginalName [get] |
|
override LocalizedString | Name [get] |
|
override ImmutableHashSet< Identifier > | Tags [get] |
|
override ImmutableHashSet< Identifier > | AllowedLinks [get] |
|
override MapEntityCategory | Category [get] |
|
override ImmutableHashSet< string > | Aliases [get] |
|
float | InteractDistance [get] |
|
float | InteractPriority [get] |
|
bool | InteractThroughWalls [get] |
|
bool | HideConditionBar [get, set] |
|
bool | HideConditionInTooltip [get, set] |
|
bool | RequireBodyInsideTrigger [get] |
|
bool | RequireCursorInsideTrigger [get] |
|
bool | RequireCampaignInteract [get] |
|
bool | FocusOnSelected [get] |
|
float | OffsetOnSelected [get] |
|
bool | GrabWhenSelected [get, set] |
|
float | Health [get] |
|
bool | AllowSellingWhenBroken [get] |
|
bool | AllowStealingAlways [get] |
|
bool | Indestructible [get] |
|
bool | DamagedByExplosions [get] |
|
float | ExplosionDamageMultiplier [get] |
|
float | ItemDamageMultiplier [get] |
|
bool | DamagedByProjectiles [get] |
|
bool | DamagedByMeleeWeapons [get] |
|
bool | DamagedByRepairTools [get] |
|
bool | DamagedByMonsters [get] |
|
float | ImpactTolerance [get, set] |
|
float | OnDamagedThreshold [get, set] |
|
float | SonarSize [get] |
|
bool | UseInHealthInterface [get] |
|
bool | DisableItemUsageWhenSelected [get] |
|
string | CargoContainerIdentifier [get] |
|
bool | UseContainedSpriteColor [get] |
|
bool | UseContainedInventoryIconColor [get] |
|
float | AddedRepairSpeedMultiplier [get] |
|
float | AddedPickingSpeedMultiplier [get] |
|
bool | CannotRepairFail [get] |
|
string | EquipConfirmationText [get, set] |
|
bool | AllowRotatingInEditor [get, set] |
|
bool | ShowContentsInTooltip [get] |
|
bool | CanFlipX [get] |
|
bool | CanFlipY [get] |
|
float | MinScale [get] |
|
float | MaxScale [get] |
|
bool | IsDangerous [get] |
|
int | MaxStackSize [get] |
|
int | MaxStackSizeCharacterInventory [get] |
|
int | MaxStackSizeHoldableOrWearableInventory [get] |
|
bool | AllowDroppingOnSwap [get] |
|
ImmutableHashSet< Identifier > | AllowDroppingOnSwapWith [get] |
|
bool | DontTransferBetweenSubs [get] |
|
bool | ShowHealthBar [get] |
|
float | BotPriority [get] |
|
bool | ShowNameInHealthBar [get] |
|
bool | IsAITurretTarget [get] |
|
float | AITurretPriority [get] |
|
float | AISlowTurretPriority [get] |
|
float | AITurretTargetingMaxDistance [get] |
|
bool | AllowStealingContainedItems [get] |
|
Color | SignalComponentColor [get] |
|
bool | DisableCommandMenuWhenSelected [get, set] |
|
Identifier | VariantOf [get] |
|
ItemPrefab | ParentPrefab [get, set] |
|
static IEnumerable< MapEntityPrefab > | List [get] |
|
static MapEntityPrefab | Selected [get, set] |
|
Sprite | Sprite [get] |
|
virtual bool | CanSpriteFlipX = false [get] |
|
virtual bool | CanSpriteFlipY = false [get] |
|
string | OriginalName [get] |
|
LocalizedString | Name [get] |
|
ImmutableHashSet< Identifier > | Tags [get] |
|
ImmutableHashSet< Identifier > | AllowedLinks [get] |
| Links defined to identifiers.
|
|
MapEntityCategory | Category [get] |
|
ImmutableHashSet< string > | Aliases [get] |
|
bool | ResizeHorizontal [get, protected set] |
|
bool | ResizeVertical [get, protected set] |
|
LocalizedString | Description [get, protected set] |
|
string | AllowedUpgrades [get, protected set] |
|
bool | HideInMenus [get, protected set] |
|
bool | HideInEditors [get, protected set] |
|
string | Subcategory [get, protected set] |
|
bool | Linkable [get, protected set] |
|
Color | SpriteColor [get, protected set] |
|
float | Scale [get, protected set] |
|
UInt32 | UintIdentifier [get, set] |
|
ContentPackage? | ContentPackage [get] |
|
ContentPath | FilePath [get] |
|
Identifier | VariantOf [get] |
|
T? | ParentPrefab [get, set] |
|