Import full typed name files
This commit is contained in:
parent
87b622441e
commit
fcd704437f
157 changed files with 224 additions and 192 deletions
|
|
@ -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; }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue