mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 18:57:03 +02:00
22 lines
529 B
C#
22 lines
529 B
C#
using CUE4Parse.UE4.Assets.Exports.Engine;
|
|
using CUE4Parse.UE4.Assets.Objects;
|
|
|
|
namespace BlitzKit.CLI.Models
|
|
{
|
|
public class MappedUDataTable : MappedUObject
|
|
{
|
|
readonly Dictionary<string, FStructFallback> StructFallbacks = [];
|
|
|
|
public MappedUDataTable(UDataTable table)
|
|
: base(table.Properties)
|
|
{
|
|
foreach (var row in table.RowMap)
|
|
{
|
|
StructFallbacks.Add(row.Key.Text, row.Value);
|
|
}
|
|
}
|
|
|
|
public MappedUObject GetRow(string name) => new(StructFallbacks[name].Properties);
|
|
}
|
|
}
|