mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-15 13:14:17 +01:00
Replace ResourceTree IEnumerables with lists
This commit is contained in:
parent
eb0e334437
commit
b595a0da0f
2 changed files with 3 additions and 3 deletions
|
|
@ -1 +1 @@
|
||||||
Subproject commit 3567cf225b469dd5bb5f723e96e2abaaa4d16a1c
|
Subproject commit e2f578a903f4e2de6c5967eb92f1b5a0a413d287
|
||||||
|
|
@ -86,7 +86,7 @@ internal static class ResourceTreeApiHelper
|
||||||
ActualPath = node.FullPath.ToString(),
|
ActualPath = node.FullPath.ToString(),
|
||||||
ObjectAddress = node.ObjectAddress,
|
ObjectAddress = node.ObjectAddress,
|
||||||
ResourceHandle = node.ResourceHandle,
|
ResourceHandle = node.ResourceHandle,
|
||||||
Children = node.Children.Select(GetIpcNode).ToArray(),
|
Children = node.Children.Select(GetIpcNode).ToList(),
|
||||||
};
|
};
|
||||||
|
|
||||||
static Ipc.ResourceTree GetIpcTree(ResourceTree tree) =>
|
static Ipc.ResourceTree GetIpcTree(ResourceTree tree) =>
|
||||||
|
|
@ -94,7 +94,7 @@ internal static class ResourceTreeApiHelper
|
||||||
{
|
{
|
||||||
Name = tree.Name,
|
Name = tree.Name,
|
||||||
RaceCode = (ushort)tree.RaceCode,
|
RaceCode = (ushort)tree.RaceCode,
|
||||||
Nodes = tree.Nodes.Select(GetIpcNode).ToArray(),
|
Nodes = tree.Nodes.Select(GetIpcNode).ToList(),
|
||||||
};
|
};
|
||||||
|
|
||||||
var resDictionary = new Dictionary<ushort, Ipc.ResourceTree>(4);
|
var resDictionary = new Dictionary<ushort, Ipc.ResourceTree>(4);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue