Skip to main content

PlayerCommandModule.StatDefinitionInfo

A class in TavernLib, TavernLib.ModulePorts.

One row of player list-stats: a stat's name, limits and, for a player with a body, its current value.

Constructors​

MemberWhat it is
StatDefinitionInfo()Makes an empty stat info; the stat conversions fill it.

Properties​

MemberWhat it is
float Max { get; set; }The stat's maximum: the player's own, or the definition's default maximum.
float Min { get; set; }The stat's minimum: the player's own, or the definition's default minimum.
string Name { get; set; }The stat definition's name.
float Value { get; set; }The player's current value. Left at 0 when made from a definition rather than a player's stat.

Methods​

MemberWhat it is
static PlayerCommandModule.StatDefinitionInfo op_Implicit(StatDefinitionApplication stat)Makes one from a player's Stat (with its value) or from a StatDefinitionApplication (default limits only).
static PlayerCommandModule.StatDefinitionInfo op_Implicit(Stat stat)Makes one from a player's Stat (with its value) or from a StatDefinitionApplication (default limits only).

Used in​

Members of other types that take, return or hold a StatDefinitionInfo: