Table of Contents

Class PlantInstance

Namespace
S1API.Growing
Assembly
S1API.dll

Represents an instance of a growing plant in the world.

public class PlantInstance
Inheritance
PlantInstance
Inherited Members
Extension Methods

Properties

IsFullyGrown

Whether the plant is fully grown.

public bool IsFullyGrown { get; }

Property Value

bool

NormalizedGrowth

The current growth stage as a float from 0.0 to 1.0.

public float NormalizedGrowth { get; }

Property Value

float

Quality

The quality level of this plant.

public float Quality { get; }

Property Value

float

SeedDefinition

The SeedDefinition that this plant originated from.

public SeedDefinition SeedDefinition { get; }

Property Value

SeedDefinition

YieldMultiplier

The yield multiplier of this plant.

public float YieldMultiplier { get; }

Property Value

float

Methods

Destroy(bool)

Destroys this plant in-game.

public void Destroy(bool dropScraps = false)

Parameters

dropScraps bool

Whether to drop plant scraps (trash) at the plant's location.