Change BuildHierarchy type signature
This commit is contained in:
parent
d3e58af75c
commit
9605c36303
|
@ -66,7 +66,7 @@ public partial class Mission : Node3D
|
|||
{
|
||||
if (Build)
|
||||
{
|
||||
RebuildMap();
|
||||
Timing.TimeStage("Build", () => RebuildMap());
|
||||
Build = false;
|
||||
}
|
||||
if (Clear)
|
||||
|
@ -106,13 +106,13 @@ public partial class Mission : Node3D
|
|||
|
||||
if (_file.Chunks.TryGetValue("BRLIST", out var brList))
|
||||
{
|
||||
var objHierarchy = Timing.TimeStage("Hierarchy", () => BuildHierarchy(_file));
|
||||
var objHierarchy = Timing.TimeStage("Hierarchy", BuildHierarchy);
|
||||
Timing.TimeStage("Object Placement", () => PlaceObjects((BrList)brList, objHierarchy));
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: Make this less of a mess
|
||||
private ObjectHierarchy BuildHierarchy(DbFile db)
|
||||
private ObjectHierarchy BuildHierarchy()
|
||||
{
|
||||
ObjectHierarchy objHierarchy;
|
||||
if (_file.Chunks.TryGetValue("GAM_FILE", out var gamFileChunk))
|
||||
|
|
Loading…
Reference in New Issue