Import full typed name files

This commit is contained in:
Meta Vens 2026-06-13 12:46:34 +01:00
commit fcd704437f
157 changed files with 224 additions and 192 deletions

View file

@ -363,17 +363,20 @@ namespace GameCult.Aetheria.State.Unity
string legacyId,
string name,
int nameCount,
IReadOnlyList<string> sampleNames)
IReadOnlyList<string> sampleNames,
IReadOnlyList<string> names)
{
LegacyId = legacyId;
Name = name;
NameCount = nameCount;
SampleNames = sampleNames;
Names = names;
}
public string LegacyId { get; }
public string Name { get; }
public int NameCount { get; }
public IReadOnlyList<string> SampleNames { get; }
public IReadOnlyList<string> Names { get; }
}
}

View file

@ -218,8 +218,9 @@ namespace GameCult.Aetheria.State.Unity
var legacyId = ReadFieldString(ref reader, fields, 1);
var nameCount = ReadFieldInt32(ref reader, fields, 2);
var sampleNames = ReadFieldStringArray(ref reader, fields, 3);
SkipRemaining(ref reader, fields, 4);
return new AetheriaRuntimeNameFile(legacyId, name, nameCount, sampleNames);
var names = ReadFieldStringArray(ref reader, fields, 4);
SkipRemaining(ref reader, fields, 5);
return new AetheriaRuntimeNameFile(legacyId, name, nameCount, sampleNames, names);
}
private static string ReadFieldString(ref MessagePackReader reader, int fields, int index)