Class LocaleMetadata
Provides properties and instance methods to store metadata from a Free Realms .dir file.
Implements
Inherited Members
Namespace: FreeRealmsLocaleTools.LocaleParser
Assembly: FreeRealmsLocaleTools.dll
Syntax
public record LocaleMetadata : IEquatable<LocaleMetadata>
Constructors
| Name | Description |
|---|---|
| LocaleMetadata() | Provides properties and instance methods to store metadata from a Free Realms .dir file. |
Properties
| Name | Description |
|---|---|
| CidLength | Gets or sets the CID length. |
| Count | Gets or sets the number of locale entries. |
| Database | Gets or sets the database URL. |
| Date | Gets or sets the date, which is typically in "ddd MMM dd HH:mm:ss zzz yyyy" format.
|
| ExtractionDate | Gets or sets the extraction date, which is typically in "ddd MMM dd HH:mm:ss zzz yyyy" format.
|
| ExtractionVersion | Gets or sets the extraction version, which typically consists of a major, minor, and build number. |
| Game | Gets or sets the game. |
| Locale | Gets or sets the locale. |
| MD5Checksum | Gets or sets the MD5 checksum of the associated locale .dat file. |
| T4Version | Gets or sets the extraction version, which typically consists of a major, minor, and build number. |
| TextLength | Gets or sets the length, in bytes, of the largest locale entry's text. |
| Version | Gets or sets the version, which typically consists of a major, minor, and build number. |
Methods
| Name | Description |
|---|---|
| Create(string, IEnumerable<LocaleEntry>) | Creates a new instance of LocaleMetadata from the specified .dat file and locale entries. |
| GetDate() | Returns the DateTime for the metadata. |
| IsExtracted() | Returns true if the metadata includes extraction properties; false otherwise. |
| IsTcg() | Returns true if the metadata refers to a TCG locale; otherwise false. |
| SetProperty(string, string) | Sets the metadata property with the given name to the specified value. |
| ToString() | Returns a string representation of the metadata as it would appear in a locale .dir file. |
| Update(string, IEnumerable<LocaleEntry>) | Creates a copy of this metadata and updates its properties with the specified .dat file and locale entries. |