Class DeathReason
[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
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
Name
public readonly string Name
Field Value
Overexertion
public static readonly DeathReason Overexertion
Field Value
Reasons
public static readonly ReadOnlyDictionary<string, DeathReason> Reasons
Field Value
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
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
TooMuchProtein
A death reason that represents that a person died from drinking too many protein shakes
public static readonly DeathReason TooMuchProtein
Field Value
Methods
Register(DeathReason)
public static DeathReason Register(DeathReason reason)
Parameters
reason
DeathReason