Barotrauma Server
|
The description element can be used to define descriptions for the affliction which are shown under specific conditions; for example a description that only shows to other players or only at certain strength levels. More...
Public Types | |
enum | TargetType { Any , Self , OtherCharacter } |
Public Member Functions | |
Description (ContentXElement element, AfflictionPrefab affliction) | |
Public Attributes | |
readonly LocalizedString | Text |
Raw text for the description. | |
readonly Identifier | TextTag |
Text tag used to set the text from the localization files. | |
readonly float | MinStrength |
Minimum strength required for the description to be shown. | |
readonly float | MaxStrength |
Maximum strength required for the description to be shown. | |
readonly TargetType | Target |
Who can see the description. | |
The description element can be used to define descriptions for the affliction which are shown under specific conditions; for example a description that only shows to other players or only at certain strength levels.
<doc> <Field identifier="Text" type="string" defaultValue=""""> Raw text for the description. </Field> </doc>
Barotrauma.AfflictionPrefab.Description.Description | ( | ContentXElement | element, |
AfflictionPrefab | affliction ) |
readonly float Barotrauma.AfflictionPrefab.Description.MaxStrength |
Maximum strength required for the description to be shown.
readonly float Barotrauma.AfflictionPrefab.Description.MinStrength |
Minimum strength required for the description to be shown.
readonly TargetType Barotrauma.AfflictionPrefab.Description.Target |
Who can see the description.
readonly LocalizedString Barotrauma.AfflictionPrefab.Description.Text |
Raw text for the description.
readonly Identifier Barotrauma.AfflictionPrefab.Description.TextTag |
Text tag used to set the text from the localization files.