/// <summary> /// Returns all Language-specific Strings /// </summary> /// <param name="l">the Language</param> /// <returns>List of Strings</returns> public StrItemList LanguageItems(StrLanguage l) { if (l == null) { return(new StrItemList()); } return(LanguageItems((Data.MetaData.Languages)l.Id)); }
/// <summary> /// Constructor /// </summary> /// <param name="index">hack to give line numbers</param> /// <param name="lid">Language ID (byte)</param> /// <param name="title">Item Title</param> /// <param name="desc">Item Description</param> public StrToken(int index, byte lid, string title, string desc) { this.index = index; this.lid = new StrLanguage(lid); this.title = title; this.desc = desc; dirty = false; }
/* * File format is: * byte - Language ID * char[]\0 - Title * char[]\0 - Description */ internal static void Unserialize(BinaryReader reader, Hashtable lines) { StrLanguage lid = new StrLanguage(reader.ReadByte()); string title = StreamHelper.ReadPChar(reader); string desc = StreamHelper.ReadPChar(reader); if (lines[lid.Id] == null) { lines[lid.Id] = new StrItemList(); // Add a new StrItemList if needed } ((StrItemList)lines[lid.Id]).Add(new StrToken(((StrItemList)lines[lid.Id]).Count, lid, title, desc)); }
public override void Sort() { StrLanguage sl = new StrLanguage(0); base.Sort(sl); }
public bool Contains(StrLanguage strlng) { return(base.Contains(strlng)); }
public void Remove(StrLanguage strlng) { base.Remove(strlng); }
public void Insert(int index, StrLanguage strlng) { base.Insert(index, strlng); }
public int Add(StrLanguage strlng) { return(base.Add(strlng)); }