Class LocString16
A localized string column of a pre-Cataclysm client database: one string per language slot in the client's fixed column order, plus the locale flags field. Use at()/set() to address slots by Locale.
public class LocString16 : IDisposable
- Inheritance
-
LocString16
- Implements
- Inherited Members
Constructors
LocString16()
public LocString16()
LocString16(string[], uint)
public LocString16(string[] values, uint flags)
Parameters
LocString16(LocString16)
Copy-construct: a deep copy of other (the C++ copy constructor).
public LocString16(LocString16 other)
Parameters
otherLocString16
Properties
Flags
The trailing locale flags field; a bitmask the client never reads, preserved verbatim.
public uint Flags { get; set; }
Property Value
Values
The language slot values in client column order (0 enUS, 1 koKR, 2 frFR, 3 deDE, 4 zhCN, 5 zhTW, 6 esES, 7 esMX, then ruRU/ptBR/itIT for 16-slot eras); empty for languages the file does not carry.
public string[] Values { get; }
Property Value
- string[]
Methods
At(Locale)
The string stored for a locale; empty when the locale has no slot in this client era.
public string At(Locale locale)
Parameters
localeLocalethe locale to look up
Returns
- string
the slot value, empty when absent
Dispose()
Release the native object now. Optional: the finalizer releases it on
collection anyway - dispose (or using) when you want native memory back
promptly.
public virtual void Dispose()
Set(Locale, string)
Store a string in a locale's slot.
public void Set(Locale locale, string value)
Parameters
Operators
operator ==(LocString16?, LocString16?)
public static bool operator ==(LocString16? l, LocString16? r)
Parameters
Returns
operator !=(LocString16?, LocString16?)
public static bool operator !=(LocString16? l, LocString16? r)