Class LocString8
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 LocString8 : IDisposable
- Inheritance
-
LocString8
- Implements
- Inherited Members
Constructors
LocString8()
public LocString8()
LocString8(string[], uint)
public LocString8(string[] values, uint flags)
Parameters
LocString8(LocString8)
Copy-construct: a deep copy of other (the C++ copy constructor).
public LocString8(LocString8 other)
Parameters
otherLocString8
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 ==(LocString8?, LocString8?)
public static bool operator ==(LocString8? l, LocString8? r)
Parameters
lLocString8rLocString8
Returns
operator !=(LocString8?, LocString8?)
public static bool operator !=(LocString8? l, LocString8? r)
Parameters
lLocString8rLocString8