Table of Contents

Class DeathReason

Namespace
TinyLife.Objects
Assembly
Tiny Life.dll
[JsonConverter(typeof(MigratingStaticJsonConverter<DeathReason>), new object[] { typeof(DeathReason), "PrivateReasons" })]
public class DeathReason
Inheritance
DeathReason
Inherited Members
Extension Methods

Constructors

DeathReason(string)

public DeathReason(string name)

Parameters

name string

Fields

Electrocution

A death reason that represents that a person died from electric shock. This value is used by TinyLife.Actions.RepairAction.

public static readonly DeathReason Electrocution

Field Value

DeathReason

InexplicableReasons

A death reason that represents that a person died from an unknown reason. This is only used by the "Die" cheat.

public static readonly DeathReason InexplicableReasons

Field Value

DeathReason

Name

public readonly string Name

Field Value

string

Overexertion

public static readonly DeathReason Overexertion

Field Value

DeathReason

Reasons

public static readonly ReadOnlyDictionary<string, DeathReason> Reasons

Field Value

ReadOnlyDictionary<string, DeathReason>

Starvation

A death reason that represents that a person died from hunger. This value is used by TinyLife.Actions.StarveAction.

public static readonly DeathReason Starvation

Field Value

DeathReason

TooMuchBrew

A death reason that represents that a person died from drinking too much brew, which represents alcohol.

public static readonly DeathReason TooMuchBrew

Field Value

DeathReason

TooMuchProtein

A death reason that represents that a person died from drinking too many protein shakes

public static readonly DeathReason TooMuchProtein

Field Value

DeathReason

Methods

Register(DeathReason)

public static DeathReason Register(DeathReason reason)

Parameters

reason DeathReason

Returns

DeathReason