Show / Hide Table of Contents

Class SericultureComponent

Should be applied to any mob that you want to be able to produce any material with an action and the cost of hunger. TODO: Probably adjust this to utilize organs?

Inheritance
System.Object
SericultureComponent
Namespace: Content.Shared.Sericulture
Assembly: Content.Shared.dll
Syntax
public sealed class SericultureComponent : Component

Fields

| Improve this Doc View Source

Action

The entity needed to actually preform sericulture. This will be granted (and removed) upon the entity's creation.

Declaration
public EntProtoId Action
Field Value
Type Description
Robust.Shared.Prototypes.EntProtoId
| Improve this Doc View Source

ActionEntity

Declaration
public EntityUid? ActionEntity
Field Value
Type Description
System.Nullable<EntityUid>
| Improve this Doc View Source

EntityProduced

What will be produced at the end of the action.

Declaration
public EntProtoId EntityProduced
Field Value
Type Description
Robust.Shared.Prototypes.EntProtoId
| Improve this Doc View Source

HungerCost

This will subtract (not add, don't get this mixed up) from the current hunger of the mob doing sericulture.

Declaration
public float HungerCost
Field Value
Type Description
System.Single
| Improve this Doc View Source

MinHungerThreshold

The lowest hunger threshold that this mob can be in before it's allowed to spin silk.

Declaration
public HungerThreshold MinHungerThreshold
Field Value
Type Description
HungerThreshold
| Improve this Doc View Source

PopupText

The text that pops up whenever sericulture fails for not having enough hunger.

Declaration
public string PopupText
Field Value
Type Description
System.String
| Improve this Doc View Source

ProductionLength

How long will it take to make.

Declaration
public float ProductionLength
Field Value
Type Description
System.Single
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾