public LocString(ELocStringType Type, int Id, string DefaultText) { this.Type = Type; this.Id = Id; Text[LocalizationDB.CodeLanguageIdx] = DefaultText; }
public LocString FindOrAddLocString(ELocStringType Type, int Id) { var list = mapLocStrings[Type]; // so far those ids are continuous from 0, switch to dictionaries when it changes while (list.Count <= Id) { list.Add(new LocString(Type, list.Count)); } return(list[Id]); }
public LocString(ELocStringType Type, int Id) { this.Type = Type; this.Id = Id; }
public LocString() { Type = ELocStringType.Unknown; Id = 0; }