Table of Contents

Class PlantType

Namespace
TinyLife.Skills
Assembly
TinyLife.dll
[JsonConverter(typeof(MigratingStaticJsonConverter<PlantType>), new object[] { typeof(PlantType), "PrivateTypes", true })]
public class PlantType
Inheritance
PlantType
Inherited Members
Extension Methods

Constructors

PlantType(string, TimeSpan, TimeSpan, TimeSpan, int, int, int, float, int, int)

public PlantType(string name, TimeSpan wateringTime, TimeSpan growTime, TimeSpan fruitTime, int maxRegrows, int minSeeds, int maxSeeds, float fruitBasePrice, int fruitMin, int fruitMax)

Parameters

name string
wateringTime TimeSpan
growTime TimeSpan
fruitTime TimeSpan
maxRegrows int
minSeeds int
maxSeeds int
fruitBasePrice float
fruitMin int
fruitMax int

PlantType(string, TimeSpan, TimeSpan, TimeSpan, int, int, int, float, int, int, float)

public PlantType(string name, TimeSpan wateringTime, TimeSpan growTime, TimeSpan fruitTime, int maxRegrows, int minSeeds, int maxSeeds, float fruitBasePrice, int fruitMin, int fruitMax, float foodSaturation)

Parameters

name string
wateringTime TimeSpan
growTime TimeSpan
fruitTime TimeSpan
maxRegrows int
minSeeds int
maxSeeds int
fruitBasePrice float
fruitMin int
fruitMax int
foodSaturation float

PlantType(string, TimeSpan, TimeSpan, TimeSpan, int, int, int, params (PlantFruitType Type, int Min, int Max)[])

public PlantType(string name, TimeSpan wateringTime, TimeSpan growTime, TimeSpan fruitTime, int maxRegrows, int minSeeds, int maxSeeds, params (PlantFruitType Type, int Min, int Max)[] fruit)

Parameters

name string
wateringTime TimeSpan
growTime TimeSpan
fruitTime TimeSpan
maxRegrows int
minSeeds int
maxSeeds int
fruit (PlantFruitType Type, int Min, int Max)[]

Fields

Basil

public static readonly PlantType Basil

Field Value

PlantType

Blueberry

public static readonly PlantType Blueberry

Field Value

PlantType

Fruit

public readonly (PlantFruitType Type, int Min, int Max)[] Fruit

Field Value

(PlantFruitType Type, int Min, int Max)[]

FruitTime

public readonly TimeSpan FruitTime

Field Value

TimeSpan

GrowTime

public readonly TimeSpan GrowTime

Field Value

TimeSpan

MaxRegrows

public readonly int MaxRegrows

Field Value

int

MaxSeeds

public readonly int MaxSeeds

Field Value

int

MinSeeds

public readonly int MinSeeds

Field Value

int

Moonpetal

public static readonly PlantType Moonpetal

Field Value

PlantType

Name

public readonly string Name

Field Value

string

Parsley

public static readonly PlantType Parsley

Field Value

PlantType

Potato

public static readonly PlantType Potato

Field Value

PlantType

Raspberry

public static readonly PlantType Raspberry

Field Value

PlantType

Redcurrant

public static readonly PlantType Redcurrant

Field Value

PlantType

SeedTexture

public readonly TextureRegion SeedTexture

Field Value

TextureRegion

Textures

public readonly Dictionary<Plant.GrowthStage, TextureRegion> Textures

Field Value

Dictionary<Plant.GrowthStage, TextureRegion>

Tomato

public static readonly PlantType Tomato

Field Value

PlantType

Types

public static readonly ReadOnlyDictionary<string, PlantType> Types

Field Value

ReadOnlyDictionary<string, PlantType>

WateringTime

public readonly TimeSpan WateringTime

Field Value

TimeSpan

Properties

DisplayName

public string DisplayName { get; }

Property Value

string

SeedDisplayName

public string SeedDisplayName { get; }

Property Value

string

Methods

Register(PlantType)

public static PlantType Register(PlantType type)

Parameters

type PlantType

Returns

PlantType