Struct SpecialFormat
- Namespace
- Uncreated.Warfare.Translations.Util
- Assembly
- Uncreated.Warfare.dll
Describes a format preset with a display name. Meant to be defined as init-only constants.
public readonly struct SpecialFormat
- Inherited Members
Constructors
SpecialFormat(string, string, bool)
public SpecialFormat(string displayName, string format, bool useForToString = true)
Parameters
Properties
DisplayName
The format type name as displayed in the comments of the translation file.
public string DisplayName { get; }
Property Value
Format
The actual case-sensitive string used to identify the format.
public string Format { get; }
Property Value
UseForToString
If this format should be given to the ToString(string, IFormatProvider) function, otherwise it's just available to addons.
public bool UseForToString { get; }
Property Value
Methods
Match(string?)
Check if a format matches this format.
public bool Match(string? fmt)
Parameters
fmtstring
Returns
Match(in ValueFormatParameters)
Check if a format matches this format.
public bool Match(in ValueFormatParameters args)