Beispiel #1
0
        public LocString(ELocStringType Type, int Id, string DefaultText)
        {
            this.Type = Type;
            this.Id   = Id;

            Text[LocalizationDB.CodeLanguageIdx] = DefaultText;
        }
Beispiel #2
0
        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]);
        }
Beispiel #3
0
 public LocString(ELocStringType Type, int Id)
 {
     this.Type = Type;
     this.Id   = Id;
 }
Beispiel #4
0
 public LocString()
 {
     Type = ELocStringType.Unknown;
     Id   = 0;
 }