Class SeedBag
public class SeedBag : Furniture, IGenericDataHolder, IContainerObject<Stacked<PlantType>>
- Inheritance
-
JsonTypeSafeGenericDataHolderSeedBag
- Implements
-
IGenericDataHolder
- Inherited Members
-
Furniture.OnRandomQuality(PersonLike, ActionInfo, bool, SkillType, bool, Dictionary<Quality, float>)JsonTypeSafeGenericDataHolder.GetDataKeys()
- Extension Methods
Constructors
SeedBag(Guid, FurnitureType, int[], Map, Vector2, float)
public SeedBag(Guid id, FurnitureType type, int[] colors, Map map, Vector2 pos, float floor)
Parameters
idGuidtypeFurnitureTypecolorsint[]mapMapposVector2floorfloat
Properties
Content
public IEnumerable<Stacked<PlantType>> Content { get; }
Property Value
Methods
AddContent(Stacked<PlantType>)
public bool AddContent(Stacked<PlantType> content)
Parameters
Returns
GetDescription(List<string>, bool)
This method allows adding a set of strings to the description list that get displayed when the object is hovered over in the build mode or household storage UIs.
By default, this method adds various strings related to the ElectricityRating, Quality, Creator, and also invokes the OnGetDescription event.
public override void GetDescription(List<string> description, bool forHoverInfo)
Parameters
descriptionList<string>The description to add to.
forHoverInfoboolWhether this method is being called by GetHoverInfo(Tooltip) (or by build mode).
RemoveContent(Stacked<PlantType>)
public bool RemoveContent(Stacked<PlantType> content)
Parameters
Returns
Validate(AppliedMigrations)
This method is called when this object is loaded from disk. Returning false on this method causes the object to be removed from the map. By default, this method invokes OnValidated and OnEventsAttachable.
public override bool Validate(AppliedMigrations appliedMigrations)
Parameters
appliedMigrationsAppliedMigrations
Returns
- bool
false if the object is not valid, true otherwise