Esempio n. 1
0
 public static string GetString(FStore store, FValueId id)
 {
     return(id.Type switch
     {
         EValueType.AnsiString => store.GetAnsiString(id.Index),
         EValueType.WideString => store.GetWideString(id.Index),
         EValueType.NumberlessName => store.NameMap[store.NumberlessNames[id.Index]].Name,
         EValueType.Name => store.Names[id.Index].Text,
         EValueType.NumberlessExportPath => store.NumberlessExportPaths[id.Index].ToString(),
         EValueType.ExportPath => store.ExportPaths[id.Index].ToString(),
         EValueType.LocalizedText => store.Texts[id.Index],
         _ => string.Empty
     });
Esempio n. 2
0
 public FNumberedPair(FAssetRegistryReader Ar)
 {
     Key   = Ar.ReadFName();
     Value = new FValueId(Ar);
 }
Esempio n. 3
0
 public FNumberedPair(FName key, FValueId value)
 {
     Key   = key;
     Value = value;
 }